Add files via upload
This commit is contained in:
parent
d93455ce38
commit
8307d4a35a
|
@ -9,7 +9,7 @@ typeof globalThis.browser === 'undefined' && (globalThis.browser = globalThis.ch
|
|||
!browser.action && (browser.action = browser.browserAction);
|
||||
|
||||
// ---------- Default Preferences --------------------------
|
||||
export let pref = {
|
||||
export const pref = {
|
||||
mode: 'disable',
|
||||
sync: false,
|
||||
proxyDNS: true,
|
||||
|
|
|
@ -11,7 +11,7 @@ class ProcessPref {
|
|||
}
|
||||
|
||||
static async init() {
|
||||
let pref = await browser.storage.local.get();
|
||||
const pref = await browser.storage.local.get();
|
||||
|
||||
// storage sync -> local update
|
||||
await Sync.get(pref);
|
||||
|
|
|
@ -17,7 +17,7 @@ export class Pattern {
|
|||
|
||||
// convert wildcard to regex string
|
||||
static convertWildcard(str) {
|
||||
if (str === '*') { return '\S+'; }
|
||||
if (str === '*') { return '\\S+'; }
|
||||
|
||||
// escape regular expression special characters, minus * ?
|
||||
return str.replace(/[.+^${}()|[\]\\]/g, '\\$&')
|
||||
|
|
Loading…
Reference in New Issue