manga-download / haruneko

Prototype of HakuNeko based on NW.js + TypeScript

Home Page:https://haruneko-docs.pages.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NW & Electron Limitations

ronny1982 opened this issue · comments

commented

NW

User-Agent in Background Script not correctly applied

In newer versions of NW, the User-Agent in the background script (navigator.userAgent) defaults to Node.js/21.
This results in always triggering the restart notification when assigning a User-Agent, even when the real User-Agent didn't changed.
See also: nwjs/nw.js#8162

Affected:

if(userAgent !== navigator.userAgent) {

New Browser Window is inaccessible

When using a browser window to fetch a request (e.g., bypass CloudFlare) the window may be empty (no DOM or JavaScript access) or may have the same content as the application window.

Affected:

if(!win.window || nw.Window.get().window === win.window) {

MediaSource not supported

When initialising a video element based on media source to stream frames, NW.js seems not to support the necessary MediaSource type. Also audio is missing in normal embedded MP4 video streams.

Electron