mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 10:07:10 +00:00
20 lines
443 B
JavaScript
20 lines
443 B
JavaScript
"use strict";
|
|
define(['app'], function () {
|
|
|
|
NzbDrone.Config.GetValue = function (key, defaultValue) {
|
|
|
|
var storeValue = localStorage.getItem(key);
|
|
|
|
if (!storeValue) {
|
|
return defaultValue;
|
|
}
|
|
|
|
return storeValue;
|
|
};
|
|
|
|
NzbDrone.Config.SetValue = function (key, value) {
|
|
console.log('Config: [{0}] => [{1}] '.format(key, value));
|
|
localStorage.setItem(key, value);
|
|
};
|
|
|
|
});
|