mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-31 16:02:29 +01:00
21 lines
443 B
JavaScript
21 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);
|
|
};
|
|
|
|
});
|