Created
September 18, 2017 16:52
-
-
Save isquick82/fd1d46eeacaab0978e48271323afee33 to your computer and use it in GitHub Desktop.
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
var utils = optimizely.get('utils'); | |
utils.waitForElement('body') | |
.then(function(elem) { | |
// Prepend the extension html to the body | |
elem.insertAdjacentHTML('afterbegin', extension.$html); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment