MCPcopy Create free account
hub / github.com/KDE/falkon / encode

Function encode

src/plugins/GreaseMonkey/data/values.js:56–66  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

54};
55
56var encode = (val) => {
57 if (typeof val == "boolean") {
58 return "b" + (val ? "true" : "false");
59 } else if (typeof val == "number") {
60 return "i" + String(val);
61 } else if (typeof val == "string") {
62 return "s" + val;
63 } else {
64 return "";
65 }
66};
67
68GM.deleteValue = function(name) {
69 return new Promise((resolve, reject) => {

Callers 1

values.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected