How do you protect your application models, logic in a JavaScript application?


#1

Hi, I’m exploring ways to protect application models, logic in a JS application (EmberJS specifically). For us, its good enough if its just hard. Currently ember-inspector makes this too easy.

Does anyone have any experience with this, or with tools like JScrambler?


Is it possible to disabling Ember inspector for a specific app?
#2

Perhaps to disable ember-inspector do something like this in app.js:

if (config.environment === 'development') {
    window.NO_EMBER_DEBUG = false;
} else {
    window.NO_EMBER_DEBUG = true;
}