Skip to content

Instantly share code, notes, and snippets.

@celestial-labs
Created January 9, 2024 17:54
Show Gist options
  • Select an option

  • Save celestial-labs/58ff89f02849add9ebca3eeb611572c7 to your computer and use it in GitHub Desktop.

Select an option

Save celestial-labs/58ff89f02849add9ebca3eeb611572c7 to your computer and use it in GitHub Desktop.

Revisions

  1. celestial-labs created this gist Jan 9, 2024.
    16 changes: 16 additions & 0 deletions executeScript.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    [
    "viewer.get-capabilities",
    {
    "name": "arcade.run",
    "arguments": {
    "canExecuteScript": "if($context.width < 800){ return true; } else { return false }",
    "executeScript": "return true;",
    "includeContext": true,
    "arguments": {}
    }
    },
    {
    "name": "viewer.load-layout",
    "arguments": "item://layout/Mobile-5f1652c2-8724-4a41-bad6-2600ee2613bd"
    }
    ]