Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nw2: "nw.Window.get(window).isKioskMode" TypeError #7258

Closed
nvedamurthy opened this issue Dec 5, 2019 · 1 comment
Closed

nw2: "nw.Window.get(window).isKioskMode" TypeError #7258

nvedamurthy opened this issue Dec 5, 2019 · 1 comment
Assignees

Comments

@nvedamurthy
Copy link

nvedamurthy commented Dec 5, 2019

NWJS Version : 0.42.6
Operating Systems : OSX 10.15.1, Ubuntu 18.04.3 LTS, Windows 10
#7230

Expected behavior

nw.Window.get(window).isKioskMode should return true/false based on if kiosk mode is enabled/disabled.
with chrome args --disable-features=nw2

>nw.Window.get(window).isKioskMode
<false

Actual behavior

Exception: TypeError: Error in invocation of nw.currentWindowInternal.isKioskInternal(): No matching signature. at NWWindow.get (extensions::nw.Window:562:36) at NWWindow.invokeGetter (<anonymous>:2:14)

How to reproduce

In Developer Tools,
nw.Window.get(window).isKioskMode

Similarly another window property isTransparent throws error.
Exception: TypeError: Cannot read property 'alphaEnabled' of undefined at NWWindow.get (extensions::nw.Window:557:27) at NWWindow.invokeGetter (<anonymous>:2:14)

@rogerwang rogerwang self-assigned this Dec 7, 2019
@rogerwang
Copy link
Member

This is fixed in git and will be available in the next nightly build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants