diff options
author | ljungster <parkerljung@gmail.com> | 2022-03-17 16:49:13 -0400 |
---|---|---|
committer | ljungster <parkerljung@gmail.com> | 2022-03-17 16:49:13 -0400 |
commit | 87ecbf85db2e1d51c0bab92154500548942fac22 (patch) | |
tree | 6383d335e3d6a389ae0fb83be535aaa5afb0fbfd /src/client/views/nodes/button/ButtonScripts.ts | |
parent | 3d8ed6f4fd23f65b43cff9eeb7dd91589e496697 (diff) | |
parent | 73ba1a0395167ab5949f71d0c82fa7188d37ab5c (diff) |
Merge remote-tracking branch 'origin/speedups2' into parker
Diffstat (limited to 'src/client/views/nodes/button/ButtonScripts.ts')
-rw-r--r-- | src/client/views/nodes/button/ButtonScripts.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/button/ButtonScripts.ts b/src/client/views/nodes/button/ButtonScripts.ts index bb4dd8bc9..f3731b8f9 100644 --- a/src/client/views/nodes/button/ButtonScripts.ts +++ b/src/client/views/nodes/button/ButtonScripts.ts @@ -1,14 +1,14 @@ -import { Scripting } from "../../../util/Scripting"; +import { ScriptingGlobals } from "../../../util/ScriptingGlobals"; import { SelectionManager } from "../../../util/SelectionManager"; // toggle: Set overlay status of selected document -Scripting.addGlobal(function changeView(view: string) { +ScriptingGlobals.add(function changeView(view: string) { const selected = SelectionManager.Views().length ? SelectionManager.Views()[0] : undefined; selected ? selected.Document._viewType = view : console.log("[FontIconBox.tsx] changeView failed"); }); // toggle: Set overlay status of selected document -Scripting.addGlobal(function toggleOverlay() { +ScriptingGlobals.add(function toggleOverlay() { const selected = SelectionManager.Views().length ? SelectionManager.Views()[0] : undefined; selected ? selected.props.CollectionFreeFormDocumentView?.().float() : console.log("failed"); });
\ No newline at end of file |