forked from 0x2620/oxjs
add Ox.localStorage
This commit is contained in:
parent
11cb7b1dc8
commit
45243cb5ff
5 changed files with 48 additions and 20 deletions
|
|
@ -18,6 +18,7 @@ Ox.App = function(options) {
|
|||
|
||||
var self = {
|
||||
options: Ox.extend({
|
||||
name: 'App',
|
||||
timeout: 60000,
|
||||
type: 'POST',
|
||||
url: '/api/'
|
||||
|
|
@ -39,6 +40,8 @@ Ox.App = function(options) {
|
|||
});
|
||||
});
|
||||
|
||||
that.localStorage = Ox.localStorage(self.options.name);
|
||||
|
||||
function getUserData() {
|
||||
return {
|
||||
document: {
|
||||
|
|
|
|||
|
|
@ -119,9 +119,7 @@ Ox.Theme = (function() {
|
|||
});
|
||||
});
|
||||
}
|
||||
if (localStorage) {
|
||||
localStorage.OxTheme = theme;
|
||||
}
|
||||
localStorage['Ox.theme'] = theme;
|
||||
return that;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue