reduce lines on template.configure()

This commit is contained in:
buzz-lightsnack-2007 2024-06-08 09:35:53 +08:00
parent d73ddbdd7e
commit aca048f3d6

View file

@ -309,16 +309,15 @@ class template {
? global.write(PREFERENCE[`name`], PREFERENCES[`all`][`build`][PREFERENCE[`name`]], -1) ? global.write(PREFERENCE[`name`], PREFERENCES[`all`][`build`][PREFERENCE[`name`]], -1)
: false; : false;
}); });
} };
}; };
/* /*
Use our preferences when handling the data. Use our preferences when handling the data.
*/ */
static configure() { static configure() {
chrome.storage.session.setAccessLevel( chrome.storage.session.setAccessLevel({accessLevel: 'TRUSTED_AND_UNTRUSTED_CONTEXTS'});
{accessLevel: 'TRUSTED_AND_UNTRUSTED_CONTEXTS'}
);
} }
} }