4 * medium.com - Override window.GLOBALS.useragent.isTier1 to be true
5 * WebCompat issue #25844 - https://webcompat.com/issues/25844
7 * This site is not showing main menu when scrolling. There is a GLOBALS variable
8 * at the bottom of the template being defined based on a server side UA detection.
9 * Setting window.GLOBALS.useragent.isTier1 to true makes the menu appear when scrolling
12 /* globals exportFunction */
15 "window.GLOBALS.useragent.isTier1 has been set to true for compatibility reasons. See https://webcompat.com/issues/25844 for details."
20 Object.defineProperty(window.wrappedJSObject, "GLOBALS", {
21 get: exportFunction(function() {
25 set: exportFunction(function(value = {}) {
28 if (!globals.useragent) {
29 globals.useragent = {};
32 globals.useragent.isTier1 = true;