From 2004afe7d5153c612a74061969708cf0188b8b99 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Fri, 9 Dec 2022 15:17:22 +0000 Subject: [PATCH] gluon: fix changes from last commit --- gluon/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gluon/index.js b/gluon/index.js index 4ed229a..3ce7330 100644 --- a/gluon/index.js +++ b/gluon/index.js @@ -85,9 +85,11 @@ export const open = async (url, onLoad = () => {}) => { const toRun = `(() => { if (window.self !== window.top) return; // inside frame - const GLUON_VERSION = ${process.versions.gluon}; + + const GLUON_VERSION = '${process.versions.gluon}'; + const NODE_VERSION = '${process.versions.node}'; const CHROMIUM_VERSION = navigator.userAgentData.brands.find(x => x.brand === "Chromium").version; - const NODE_VERSION = ${process.versions.node}; + (${onLoad.toString()})(); })()`;