Created
March 23, 2022 09:50
-
-
Save wrr/7c8c2a4b0b0a891f194710d07e90dc0b to your computer and use it in GitHub Desktop.
Open external URL when Shapespark view menu item is clicked
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function() { | |
var viewer = WALK.getViewer(); | |
viewer.onViewSwitchStarted(function(viewName) { | |
if (viewName === 'PUT-THE-NAME-OF-YOUR-VIEW-MENU-ITEM-HERE') { | |
viewer.openUrl('https://example.com', false); | |
} | |
}); | |
}()); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment