Move storing access token into style metadata

This commit is contained in:
Lukas Martinelli
2016-12-28 21:50:47 +01:00
parent 604be38b7c
commit ccc39b87db
3 changed files with 14 additions and 25 deletions

View File

@@ -61,17 +61,6 @@ function styleKey(styleId) {
return [storagePrefix, stylePrefix, styleId].join(":")
}
// Store style independent settings
export class SettingsStore {
get accessToken() {
const token = window.localStorage.getItem(storageKeys.accessToken)
return token ? token : ""
}
set accessToken(val) {
window.localStorage.setItem(storageKeys.accessToken, val)
}
}
// Manages many possible styles that are stored in the local storage
export class StyleStore {
// Tile store will load all items from local storage and