chore: Fix js lint errors
This commit is contained in:
4 files changed
+10
-10
No files matched your search
@@ -76,8 +76,9 @@ export default class StorageService extends Service {
|
||||
const inMemory = get(config, 'storage.memory');
|
||||
// Get the global context object (window) via service lookup,
|
||||
// because just reaching for a global is icky
|
||||
const globalContext = getOwner(this).lookup('service:-document')
|
||||
.documentElement.parentNode.defaultView;
|
||||
const globalContext =
|
||||
getOwner(this).lookup('service:-document').documentElement.parentNode
|
||||
.defaultView;
|
||||
// If memory storage enabled, return the memory storage instance,
|
||||
// otherwise return localStorage.
|
||||
return inMemory ? this.#memoryStorage : globalContext.localStorage;
|
||||
|
||||
Reference in new issue
Block a user