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
// 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 && |