bug1819678-free4talk.com-window-chrome-shim.js (593B)
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 1827678 - UA spoof for www.free4talk.com 9 * 10 * This site is checking for window.chrome, so let's spoof that. 11 */ 12 13 /* globals exportFunction */ 14 15 console.info( 16 "window.chrome has been shimmed for compatibility reasons. See https://github.com/webcompat/web-bugs/issues/77727 for details." 17 ); 18 19 window.wrappedJSObject.chrome = new window.wrappedJSObject.Object();