plutonium 0.58.0 → 0.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28022,10 +28022,15 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e4.byteLength}`), e4.tif
28022
28022
  };
28023
28023
  connect() {
28024
28024
  const pinned = localStorage.getItem(this.storageKeyValue) !== "false";
28025
- document.body.classList.toggle("pu-rail-pinned", pinned);
28025
+ document.documentElement.classList.toggle("pu-rail-pinned", pinned);
28026
+ }
28027
+ disconnect() {
28028
+ if (!document.querySelector('[data-controller~="icon-rail"]')) {
28029
+ document.documentElement.classList.remove("pu-rail-pinned");
28030
+ }
28026
28031
  }
28027
28032
  togglePin() {
28028
- const pinned = document.body.classList.toggle("pu-rail-pinned");
28033
+ const pinned = document.documentElement.classList.toggle("pu-rail-pinned");
28029
28034
  localStorage.setItem(this.storageKeyValue, pinned);
28030
28035
  }
28031
28036
  };