MCPcopy Create free account
hub / github.com/LeFroid/Viper-Browser / checkKey

Function checkKey

src/app/assets/javascript/GreaseMonkeyAPI.js:32–36  ·  view source on GitHub ↗
(key, funcName)

Source from the content-addressed store, hash-verified

30 }
31
32 function checkKey(key, funcName) {
33 if (typeof key !== "string") {
34 throw new Error(`${funcName} requires the first parameter to be of type string, not '${typeof key}'`);
35 }
36 }
37
38 function GM_setValue(key, value) {
39 checkKey(key, "GM_setValue");

Callers 3

GM_setValueFunction · 0.85
GM_getValueFunction · 0.85
GM_deleteValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected