javascript - Chrome packaged app - find out if running in kiosk-mode -


I am creating an application that can be played in kiosk mode and normally (eg, open from Chrome browser ) But some features should be allowed to run in kiosk mode only.

This is a snippet from my manifest.json for any help

 I can find out in a way that it is running in kiosk mode or normal fullscreen / window -Model?   {"manifest_version": 2, "kiosk_enabled": true, "kiosk_only": false}    

Documentation:

To determine whether the app is being run in regular session or in a single app kiosk mode, you can inspect that kiosk session boolean Event from the Launcadata Object is included.

like this:

  chrome.app.runtime.onLaunched.addListener (function (LaunchData) {launchData.isKioskSession; // true or false});    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -