Files
jiapu/dist/utils/StorageUtil.js
T

2 lines
379 B
JavaScript

(function(o,t){if(typeof module=="object"&&module.exports){module.exports=t();return}o.StorageUtil=t()})(typeof globalThis!="undefined"?globalThis:window,function(){"use strict";function o(e,r){try{return e&&e.getItem(r)}catch(n){return null}}function t(e,r,n){try{e&&e.setItem(r,n)}catch(u){}}function i(e,r){try{e&&e.removeItem(r)}catch(n){}}return{read:o,write:t,remove:i}});