gluon: fix changes from last commit

This commit is contained in:
CanadaHonk 2022-12-09 15:17:22 +00:00
parent 4290f54981
commit 2004afe7d5

View File

@ -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()})();
})()`;