A Sample PHP Project for the tts_framework.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
tts_project/public/assets/js/trouble_shooting_routes.js

24 lines
626 B

var Fresh = function() {
function KeepAsset(key) {
found_one = false;
assets_files.forEach(value => {
if (ajax_folder+value.filename+value.ts == key) {
found_one = true;
// Note: Do NOT use a BREAK here it will not work
// NOR does Return work
}
});
return found_one;
}
let allKeys = Object.keys(localStorage);
allKeys.forEach(value => {
if (! KeepAsset(value)) {
localStorage.removeItem(value);
}
});
};
tts.Router.get('Clear', function() {
sessionStorage.clear();
});