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

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -