gluon-framework / gluon

A new framework for creating desktop apps from websites, using system installed browsers and NodeJS
https://gluonjs.org
MIT License
3.1k stars 76 forks source link

Custom useragent #55

Closed smartfrigde closed 1 year ago

smartfrigde commented 1 year ago

Add a way to override the useragent For example:

import * as Gluon from '@gluon-framework/gluon';

const Window = await Gluon.open('https://gluonjs.org', {
  userAgent: 'Mozilla/5.0 (Android 13; Mobile; LG-M255; rv:109.0) Gecko/109.0 Firefox/109.0'
});
CanadaHonk commented 1 year ago

Added in 0.14.0, new userAgent Gluon.open() option.