
Lib.robot.htmldata.common.storage.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sikulixapi Show documentation
Show all versions of sikulixapi Show documentation
... for visual testing and automation
storage = function () {
var prefix = 'robot-framework-';
function init(user) {
prefix += user + '-';
}
function get(name, defaultValue) {
if (!localStorage)
return defaultValue;
var value = localStorage[prefix + name];
if (typeof value === 'undefined')
return defaultValue;
return value;
}
function set(name, value) {
if (localStorage)
localStorage[prefix + name] = value;
}
return {init: init, get: get, set: set};
}();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy