MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / setEnableScript

Method setEnableScript

src/pkg/config/config.ts:443–449  ·  view source on GitHub ↗
(enable: boolean)

Source from the content-addressed store, hash-verified

441 }
442
443 setEnableScript(enable: boolean) {
444 if (chrome.extension.inIncognitoContext) {
445 this._set("enable_script_incognito", enable);
446 } else {
447 this._set("enable_script", enable);
448 }
449 }
450
451 async getEnableScript() {
452 if (chrome.extension.inIncognitoContext) {

Callers 2

AppFunction · 0.80
config.test.tsFile · 0.80

Calls 1

_setMethod · 0.95

Tested by

no test coverage detected