javascript - WinJS: Check if is running in debug mode -
javascript - WinJS: Check if is running in debug mode -
i need because license information, i'm looking way know if app running in debug or production mode.
if app running in debug mode, need utilize windows.applicationmodel.store.currentappsimulator otherwise need utilize windows.applicationmodel.store.currentapp
so, i'm looking implementation of function isdebug:
var currentapp; if (isdebug()) { currentapp = windows.applicationmodel.store.currentappsimulator; } else { currentapp = windows.applicationmodel.store.currentapp; } any tricks?
debug.debuggerenabled tells if debugger attached.
note isn't same "it compiled debug" -- since js isn't compiled isn't meaningful indicator.
javascript windows-8 winjs
Comments
Post a Comment