blob: 6f3811fe45ac7226c4988e32eceb6b36dfd93918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"use strict";
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const EXPORTED_SYMBOLS = ["RegionTestUtils"];
const RegionTestUtils = Object.freeze({
REGION_URL_PREF: "browser.region.network.url",
setNetworkRegion(region) {
Services.prefs.setCharPref(
this.REGION_URL_PREF,
`data:application/json,{"country_code": "${region}"}`
);
},
});
|