Skip to content

Instantly share code, notes, and snippets.

View xzcollapse's full-sized avatar
🪛
I'm just funky like that

Oli xzcollapse

🪛
I'm just funky like that
View GitHub Profile
// Add global variable to the window to allow goggles to work on
// website that have requirejs integrated in
window.__LOCALIZED_IGNORE_REQUIREJS = true;
(function(global, ignoreRequireJS, factory) {
// AMD. Register as an anonymous module. Also deal with the case
// that we've been told to force localized on the global (e.g.,
// in cases where require.js might exist in a page and we want to
// ignore it and use the global instead).
if (typeof define === 'function' &&
define.amd &&