gluon/gluworld/index.js
2022-12-10 01:31:25 +00:00

13 lines
383 B
JavaScript

import * as Gluon from '../gluon/index.js';
import { fileURLToPath, pathToFileURL } from 'url';
import { join, dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
(async () => {
const Chromium = await Gluon.open(pathToFileURL(join(__dirname, 'index.html')).href, {
windowSize: [ 800, 450 ]
});
})();