gluworld: use args to select browsers, if not use default
This commit is contained in:
parent
04c4b57586
commit
3c51cda873
@ -24,14 +24,19 @@ const dirSize = async dir => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const Chromium = await Gluon.open(pathToFileURL(join(__dirname, 'index.html')).href, {
|
if (process.argv.length > 2) { // use argv as browsers to use
|
||||||
|
for (const forceBrowser of process.argv.slice(2)) {
|
||||||
|
await Gluon.open(pathToFileURL(join(__dirname, 'index.html')).href, {
|
||||||
windowSize: [ 800, 500 ],
|
windowSize: [ 800, 500 ],
|
||||||
forceBrowser: 'chrome_canary'
|
forceBrowser
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const Firefox = await Gluon.open(pathToFileURL(join(__dirname, 'index.html')).href, {
|
return;
|
||||||
windowSize: [ 800, 500 ],
|
}
|
||||||
forceBrowser: 'firefox_nightly'
|
|
||||||
|
const Browser = await Gluon.open(pathToFileURL(join(__dirname, 'index.html')).href, {
|
||||||
|
windowSize: [ 800, 500 ]
|
||||||
});
|
});
|
||||||
|
|
||||||
// const buildSize = await dirSize(__dirname);
|
// const buildSize = await dirSize(__dirname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user