MCPcopy Create free account
hub / github.com/error311/FileRise / applyDualPane

Function applyDualPane

public/js/fileListView.js:5942–5954  ·  view source on GitHub ↗
(enabled)

Source from the content-addressed store, hash-verified

5940 toggle.setAttribute("aria-label", text.textContent);
5941
5942 const applyDualPane = (enabled) => {
5943 localStorage.setItem("dualPaneMode", enabled ? "true" : "false");
5944 window.dualPaneEnabled = enabled;
5945 if (typeof window.applyDualPaneMode === "function") {
5946 window.applyDualPaneMode(enabled);
5947 } else {
5948 window.__frDualPanePending = enabled;
5949 }
5950 const panelToggle = document.getElementById("dualPaneMode");
5951 if (panelToggle) {
5952 panelToggle.checked = enabled;
5953 }
5954 };
5955
5956 toggle.addEventListener("change", () => {
5957 applyDualPane(toggle.checked);

Callers 1

buildDualPaneToggleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected