File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ declare global {
77 // interface PageData {}
88 // interface Platform {}
99 }
10- var PUBLIC_VERSION
10+ var __VERSION__
1111 var toast
1212 var gtag
1313 var TEST_MODE
Original file line number Diff line number Diff line change 11<script >
22/* eslint no-useless-escape: "off" */
3- /* global PUBLIC_VERSION */
3+ /* global __VERSION__ */
44
55import { SvelteToast , toast } from ' $lib'
66import { tick } from ' svelte'
@@ -12,7 +12,7 @@ import Prism from 'prismjs'
1212// Hoist to `window` for tests
1313if (browser) window .toast = toast
1414
15- const version = PUBLIC_VERSION
15+ const version = __VERSION__
1616
1717let selected = ' '
1818let code = ' // Tap a button below'
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ const { version } = JSON.parse(await fs.readFile('package.json'))
77export default defineConfig ( {
88 plugins : [ sveltekit ( ) ] ,
99 define : {
10- PUBLIC_VERSION : JSON . stringify ( version )
10+ __VERSION__ : JSON . stringify ( version )
1111 }
1212} )
You can’t perform that action at this time.
0 commit comments