MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getConfigSize

Function getConfigSize

scripts/magnify_image.js:13–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12const MagnifySizeKey = "ufs_magnify_image_size";
13const getConfigSize = async () => {
14 if (!CACHED.configSize) {
15 const { Storage } = await import("./helpers/utils.js");
16 const data = await Storage.get(MagnifySizeKey);
17 CACHED.configSize = data?.split("x") || [20, 20];
18 }
19 return CACHED.configSize;
20};
21const setConfigSize = async (width, height) => {
22 const { Storage } = await import("./helpers/utils.js");
23 CACHED.configSize = [width, height];

Callers 1

magnify_image.jsFile · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected