Skip to content

Commit 1b4361e

Browse files
authored
Merge pull request #4108 from rtibbles/vue_runtime
Use an instantiated vue object to reference $watch from for ESM compatibility
2 parents 799afad + d3a0144 commit 1b4361e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • contentcuration/contentcuration/frontend/shared/data

contentcuration/contentcuration/frontend/shared/data/serverSync.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,10 @@ if (process.env.NODE_ENV !== 'production' && typeof window !== 'undefined') {
355355

356356
let intervalTimer;
357357

358+
const vueInstance = new Vue();
359+
358360
export function syncOnChanges() {
359-
Vue.$watch(() => changeRevs.length, debouncedSyncChanges);
361+
vueInstance.$watch(() => changeRevs.length, debouncedSyncChanges);
360362
}
361363

362364
export function startSyncing() {

0 commit comments

Comments
 (0)