Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Inject window object so vue template can access it

Tianzhou Chen5294a499743b
diff --git a/frontend/src/main.js b/frontend/src/main.js
index 52b7355785..cd629ba2eb 100644
--- a/frontend/src/main.js
+++ b/frontend/src/main.js
@@ -22,7 +22,12 @@ if (process.env.NODE_ENV === "development") {
makeServer();
}
-createApp(App)
+const app = createApp(App);
+
+// Allow template to access window object
+app.config.globalProperties.window = window;
+
+app
.use(store)
.use(router)
.component("BBAlert", BBAlert)