-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe3e1d8
commit ef69b76
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ document.addEventListener('vue:loaded', () => { | |
|
||
function init() { | ||
if (document.body.contains(window.app.$el)) { | ||
return; | ||
return | ||
} | ||
|
||
// https://vuejs.org/api/application.html#app-config-performance | ||
|
@@ -149,17 +149,17 @@ function init() { | |
store = window.config.store | ||
} | ||
|
||
let url = new URL(imagePath) | ||
url = url.pathname.replace('/media', '') | ||
|
||
return `/storage/${store}/resizes/${size}/magento${url}` | ||
}, | ||
}, | ||
computed: { | ||
// Wrap the local storage in getter and setter functions so you do not have to interact using .value | ||
guestEmail: wrapValue( | ||
useLocalStorage('email', window.debug ? '[email protected]' : '', { serializer: StorageSerializers.string }), | ||
), | ||
let url = new URL(imagePath) | ||
url = url.pathname.replace('/media', '') | ||
|
||
return `/storage/${store}/resizes/${size}/magento${url}` | ||
}, | ||
}, | ||
computed: { | ||
// Wrap the local storage in getter and setter functions so you do not have to interact using .value | ||
guestEmail: wrapValue( | ||
useLocalStorage('email', window.debug ? '[email protected]' : '', { serializer: StorageSerializers.string }), | ||
), | ||
|
||
loggedIn() { | ||
return Boolean(this.user?.id) | ||
|