summaryrefslogtreecommitdiffstats
path: root/browser/extensions/webcompat/injections/js/bug1722955-frontgate.com-ua-override.js
blob: 8c229fd0e51862130274e891d593fb943c4bfd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";

/*
 * Bug 1722955 - Add UA override for frontgate.com
 * Webcompat issue #36277 - https://github.com/webcompat/web-bugs/issues/36277
 *
 * The website is sending the desktop version to Firefox on mobile devices
 * based on UA sniffing. Spoofing as Chrome fixes this.
 */

/* globals exportFunction, UAHelpers */

console.info(
  "The user agent has been overridden for compatibility reasons. See https://webcompat.com/issues/36277 for details."
);

UAHelpers.overrideWithDeviceAppropriateChromeUA();