Last active
March 24, 2020 17:53
-
-
Save jtsternberg/b0cbcaa62cdc044cabdb313ecd5d90e9 to your computer and use it in GitHub Desktop.
load OM api.js asynchronously
This file contains 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
(function() { | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.src = 'https://a.omappapi.com/app/js/api.min.js'; | |
s.setAttribute('data-user', USERID); | |
s.setAttribute('data-account', ACCOUNTID); | |
(document.getElementsByTagName('body')[0] || document.documentElement).appendChild(s); | |
})(); |
This file contains 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
!function(d){var e=d.createElement("script");e.type="text/javascript",e.src="https://a.omappapi.com/app/js/api.min.js",e.setAttribute('data-user',USERID),e.setAttribute('data-account',ACCOUNTID),(d.getElementsByTagName("body")[0]||d.documentElement).appendChild(e)}(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment