neutralinojs / webview

A modified version of C++ webview for Neutralinojs.
MIT License
10 stars 1 forks source link

window.print() not working in neutralino windows when mode is window. #4

Open Blatman opened 2 years ago

Blatman commented 2 years ago

MacOS: 10.13.6 NS: 2.8.0 CL: 1.5.0

Finding that window.print() does not function in window. The print dialog does not open as expected.

If I setup an express server in a neu app and use Safari to browse to the the page on the specified port then the window.print() will work OK with the standard Safari print dialog dropping down.

I tried the workrounds suggested in neutralinojs/neutralinojs#402 and neutralinojs/neutralinojs#206 and they don't work in the neu windows but are OK in the Safari setup.

If I change the mode in config from window to browser then the window.print() works when the Safari browser opens the page.

Does this suggest that window.print() needs to be included as an option in the Native API when mode=window is used?