Skip to content

Commit 2a03d39

Browse files
committed
fix dev runtime url
1 parent 863ca81 commit 2a03d39

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/store.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ export class ReplStore {
6464
}
6565
}
6666

67-
this.defaultVueRuntimeURL = import.meta.env.PROD
68-
? defaultVueRuntimeURL
69-
: `${location.origin}/src/vue-dev-proxy`
67+
this.defaultVueRuntimeURL = defaultVueRuntimeURL
7068

7169
this.state = reactive({
7270
files,

test/main.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { Repl, ReplStore } from '../src'
66
const App = {
77
setup() {
88
const store = new ReplStore({
9-
serializedState: location.hash.slice(1)
9+
serializedState: location.hash.slice(1),
10+
defaultVueRuntimeURL: import.meta.env.PROD
11+
? undefined
12+
: `${location.origin}/src/vue-dev-proxy`
1013
})
1114

1215
watchEffect(() => history.replaceState({}, '', store.serialize()))

0 commit comments

Comments
 (0)