mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add deprecated warnings to f-localStorage
This commit is contained in:
@ -1,18 +1,30 @@
|
||||
////////////////// LOCAL STORAGE HANDLING /////////////////////
|
||||
|
||||
/**
|
||||
* @deprecated THIS FUNCTION IS OBSOLETE. DO NOT USE
|
||||
*/
|
||||
export function SaveLocal(target, val) {
|
||||
localStorage.setItem(target, val);
|
||||
console.debug('SaveLocal -- ' + target + ' : ' + val);
|
||||
}
|
||||
/**
|
||||
* @deprecated THIS FUNCTION IS OBSOLETE. DO NOT USE
|
||||
*/
|
||||
export function LoadLocal(target) {
|
||||
console.debug('LoadLocal -- ' + target);
|
||||
return localStorage.getItem(target);
|
||||
|
||||
}
|
||||
/**
|
||||
* @deprecated THIS FUNCTION IS OBSOLETE. DO NOT USE
|
||||
*/
|
||||
export function LoadLocalBool(target) {
|
||||
let result = localStorage.getItem(target) === 'true';
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* @deprecated THIS FUNCTION IS OBSOLETE. DO NOT USE
|
||||
*/
|
||||
export function CheckLocal() {
|
||||
console.log('----------local storage---------');
|
||||
var i;
|
||||
@ -22,6 +34,9 @@ export function CheckLocal() {
|
||||
console.log('------------------------------');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated THIS FUNCTION IS OBSOLETE. DO NOT USE
|
||||
*/
|
||||
export function ClearLocal() { localStorage.clear(); console.log('Removed All Local Storage'); }
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user