aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-02 19:43:12 -0400
committerAdam Soltys <[email protected]>2022-09-02 19:43:12 -0400
commitcc01d4333dfe9aca72193d22bed94ddf41cb6048 (patch)
treecdd420611645f6e3b0d1c6f5983a7162f5935197 /src
parent5b63183d65eba1e5e53696e4bcf92882b5cee900 (diff)
downloadcoinos-ui-cc01d4333dfe9aca72193d22bed94ddf41cb6048.tar.gz
coinos-ui-cc01d4333dfe9aca72193d22bed94ddf41cb6048.zip
update browser imports
Diffstat (limited to 'src')
-rw-r--r--src/components/LocationsMap.svelte2
-rw-r--r--src/components/Qr.svelte2
-rw-r--r--src/lib/store.js2
-rw-r--r--src/lib/utils.js2
-rw-r--r--src/routes/+layout.svelte2
-rw-r--r--src/routes/[username]/+page.svelte2
-rw-r--r--src/routes/invoice/[id]/+page.svelte2
-rw-r--r--src/routes/logout/+page.svelte2
8 files changed, 8 insertions, 8 deletions
diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte
index 42469563..2cff3449 100644
--- a/src/components/LocationsMap.svelte
+++ b/src/components/LocationsMap.svelte
@@ -1,6 +1,6 @@
<script>
import { onMount, onDestroy } from 'svelte';
- import { browser } from '$app/env';
+ import { browser } from '$app/environment';
let mapElement;
let map;
diff --git a/src/components/Qr.svelte b/src/components/Qr.svelte
index 0d5ae6ad..52bb7a65 100644
--- a/src/components/Qr.svelte
+++ b/src/components/Qr.svelte
@@ -1,5 +1,5 @@
<script>
- import { browser } from '$app/env';
+ import { browser } from '$app/environment';
import { onMount } from 'svelte';
import { copy } from '$lib/utils';
diff --git a/src/lib/store.js b/src/lib/store.js
index 18a8824f..dcc81cda 100644
--- a/src/lib/store.js
+++ b/src/lib/store.js
@@ -1,5 +1,5 @@
import { get, writable } from 'svelte/store';
-import { browser } from '$app/env';
+import { browser } from '$app/environment';
// creates a Svelte store synced to sessionStorage with the given key and default value
const persistSession = (key, defaultValue) => {
diff --git a/src/lib/utils.js b/src/lib/utils.js
index aa4e3951..401613b8 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -1,5 +1,5 @@
import cookie from 'cookie';
-import { browser } from '$app/env';
+import { browser } from '$app/environment';
import { toast } from '@zerodevx/svelte-toast';
export function scroll(section) {
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index e8db3665..13bf646e 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -5,7 +5,7 @@
import { connect } from '$lib/socket';
import { user, token, rate, rates, selectedRate } from '$lib/store';
import { page } from '$app/stores';
- import { browser } from '$app/env';
+ import { browser } from '$app/environment';
import { goto } from '$app/navigation';
import { LoadingSplash } from '$comp';
import { warning, protectedRoutes } from '$lib/utils';
diff --git a/src/routes/[username]/+page.svelte b/src/routes/[username]/+page.svelte
index 51940ffd..0d1986ba 100644
--- a/src/routes/[username]/+page.svelte
+++ b/src/routes/[username]/+page.svelte
@@ -1,5 +1,5 @@
<script>
- import { browser } from '$app/env';
+ import { browser } from '$app/environment';
import { onMount } from 'svelte';
import { AppHeader, Icon, PageNotFound } from '$comp';
import { user } from '$lib/store';
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte
index a76d4bc2..e8d5562c 100644
--- a/src/routes/invoice/[id]/+page.svelte
+++ b/src/routes/invoice/[id]/+page.svelte
@@ -1,6 +1,6 @@
<script>
import { get, post, reverseFormat } from '$lib/utils';
- import { browser } from '$app/env';
+ import { browser } from '$app/environment';
import { invoices, user } from '$lib/store';
import { Icon, Image, Qr } from '$comp';
import { goto, invalidate } from '$app/navigation';
diff --git a/src/routes/logout/+page.svelte b/src/routes/logout/+page.svelte
index 2c6a7085..5fd88bec 100644
--- a/src/routes/logout/+page.svelte
+++ b/src/routes/logout/+page.svelte
@@ -1,6 +1,6 @@
<script>
import { onMount } from 'svelte';
- import { browser } from '$app/env';
+ import { browser } from '$app/environment';
import { user, token } from '$lib/store';
onMount(() => {