/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; /** * Bug 1841730 - Fix www.korg.com support download page loads on Windows. * WebCompat issue #2787 - https://webcompat.com/issues/2787 * * They are using a library named PACE, which has a timing bug with IceCat * which breaks page loads (due to a stuck progress indicator) on Windows. * This is the fix suggested at https://github.com/CodeByZach/pace/issues/510 */ /* globals exportFunction */ (function () { const win = window.wrappedJSObject; let val = new win.Object(); val.eventLag = false; Object.defineProperty(win, "paceOptions", { configurable: true, get: exportFunction(function () { return val; }, window), set: exportFunction(function (_val) { val = _val; }, window), }); })();