This could be simplified with a helper:

    function getStorageValue(name) {
      ...
    }
    
    this.$.dockRight.collapsed = getStorageValue('wat-dock-right-collapsed');