diff options
Diffstat (limited to 'client/src/app/core/server/server.service.ts')
-rw-r--r-- | client/src/app/core/server/server.service.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index 0b63ef5be..206ec7bcd 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { HttpClient } from '@angular/common/http' | 1 | import { HttpClient } from '@angular/common/http' |
2 | import { Injectable } from '@angular/core' | 2 | import { Injectable } from '@angular/core' |
3 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage' | ||
3 | import 'rxjs/add/operator/do' | 4 | import 'rxjs/add/operator/do' |
4 | import { ReplaySubject } from 'rxjs/ReplaySubject' | 5 | import { ReplaySubject } from 'rxjs/ReplaySubject' |
5 | import { ServerConfig } from '../../../../../shared' | 6 | import { ServerConfig } from '../../../../../shared' |
@@ -140,11 +141,11 @@ export class ServerService { | |||
140 | } | 141 | } |
141 | 142 | ||
142 | private saveConfigLocally (config: ServerConfig) { | 143 | private saveConfigLocally (config: ServerConfig) { |
143 | localStorage.setItem(ServerService.CONFIG_LOCAL_STORAGE_KEY, JSON.stringify(config)) | 144 | peertubeLocalStorage.setItem(ServerService.CONFIG_LOCAL_STORAGE_KEY, JSON.stringify(config)) |
144 | } | 145 | } |
145 | 146 | ||
146 | private loadConfigLocally () { | 147 | private loadConfigLocally () { |
147 | const configString = localStorage.getItem(ServerService.CONFIG_LOCAL_STORAGE_KEY) | 148 | const configString = peertubeLocalStorage.getItem(ServerService.CONFIG_LOCAL_STORAGE_KEY) |
148 | 149 | ||
149 | if (configString) { | 150 | if (configString) { |
150 | try { | 151 | try { |