diff options
| author | bobzel <zzzman@gmail.com> | 2022-03-22 11:32:47 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-03-22 11:32:47 -0400 |
| commit | 810f86195188503b04d64f9d58ea4dfc3a639398 (patch) | |
| tree | 2e0f252147dd65f36069426df4fe5369423427dc /src/client/views/nodes/button/ButtonScripts.ts | |
| parent | 0885f2b6ea10bdc54f587040ea8e6dc90ef5b0f3 (diff) | |
fixed temporal media merge that had reverted a lot of things.
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 |
