feat: added onSettingsChange method into prototype

This commit is contained in:
Pavel-Savely Savianok 2025-02-25 00:23:50 +03:00
parent b4df58765d
commit 90c3432e94
3 changed files with 8 additions and 2 deletions

View File

@ -8,8 +8,12 @@ AppSideService(
},
onRequest(req, res){
if(req.method === 'totps'){
console.log(set)
res(null, settings.settingsStorage.getItem('TOTPs'))
}
},
onSettingsChange(set){
console.log(set)
}
}
)

View File

@ -6,7 +6,7 @@
"appType": "app",
"version": {
"code": 1,
"name": "1.0.0"
"name": "1.0.1"
},
"icon": "icon.png",
"vender": "zepp",

View File

@ -158,5 +158,7 @@ function GetTOTPList(storage){
}
function updateStorage(storage){
console.log("new storage is:")
console.log(storage)
_props.settingsStorage.setItem('TOTPs', storage)
}