bug1831007-nintendo-window-OnetrustActiveGroups.js (891B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 /** 8 * Bug 1831007 - Shim window.OnetrustActiveGroups for Nintendo sites 9 * 10 * Nintendo relies on `window.OnetrustActiveGroups` being defined. If it's not, 11 * users may have intermittent issues signing into their account, as they're 12 * then trying to call `.split()` on `undefined`. 13 * 14 * This intervention sets a default value (an empty string), but still allows 15 * the value to be overwritten at any time. 16 */ 17 18 /* globals exportFunction */ 19 20 console.info( 21 "The window.OnetrustActiveGroups property has been shimmed for compatibility reasons. See https://bugzilla.mozilla.org/show_bug.cgi?id=1831007 for details." 22 ); 23 24 window.wrappedJSObject.OnetrustActiveGroups = "";