MCPcopy Create free account
hub / github.com/anyehttp/quantumult-x / readLocalData

Function readLocalData

task/Steampy.js:98–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97// 读取本地数据
98function readLocalData() {
99 console.log('读取本地数据');
100 try {
101 const data = $.getdata('steampy_data') || '{}';
102 return JSON.parse(data);
103 } catch (parseError) {
104 console.error(`读取本地数据失败: ${parseError}`);
105 return {};
106 }
107}
108
109// 写入本地数据
110function writeLocalData(data) {

Callers 1

getListFunction · 0.70

Calls 2

logMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected