You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
The website app.blubank.com is a financial bank account management application, and it strictly requires you to use it only on the phone. To use it on a desktop computer, Two things must be changed:
User Agent: I sent a fake iOS user agent.
window.navigator.standalone: This attribute must be true; otherwise, the site will stop working.
I tried injecting this script:
window.navigator.standalone = true;
But it seems like because this is called in the DOMContentLoaded event, it is too late to change that attribute and the script already detected my PC. I tried searching in electron docs and other issues, but there is no other way to change this variable before the site's main script.
Steps to reproduce
nativefier "https://app.blubank.com" --name "ḃlu" -u "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1" --inject i.js --single-instance --tray --width 450 --height 850
Debug info
No response
Nativefier version
50.1.1
Node.js version
v19.9.0
npm version
9.6.3
OS
macOS Ventura 13.3 (M1)
The text was updated successfully, but these errors were encountered:
Homework
nativefier --help
and API.md.Your question
The website app.blubank.com is a financial bank account management application, and it strictly requires you to use it only on the phone. To use it on a desktop computer, Two things must be changed:
I tried injecting this script:
But it seems like because this is called in the
DOMContentLoaded
event, it is too late to change that attribute and the script already detected my PC. I tried searching in electron docs and other issues, but there is no other way to change this variable before the site's main script.Steps to reproduce
Debug info
No response
Nativefier version
50.1.1
Node.js version
v19.9.0
npm version
9.6.3
OS
macOS Ventura 13.3 (M1)
The text was updated successfully, but these errors were encountered: