Local storage functions

PHOTO EMBED

Fri Apr 15 2022 01:40:24 GMT+0000 (Coordinated Universal Time)

Saved by @twelvetone

namespace.getLocal = function(key)
{
	return localStorage.getItem(key);
}

namespace.setLocal = function(key, value)
{
	return localStorage.setItem(key, value);
}

namespace.hasLocal = function(key)
{
	return myjs.getLocal(key) != null;
}

namespace.removeLocal = function(key)
{
	localStorage.removeItem(key);
}
content_copyCOPY

Basic functions for local storage