Fixes to get production build working

This commit is contained in:
sachaaaaa 2018-12-07 16:49:43 +11:00
parent 05c18d42db
commit d8f4d1f313
4 changed files with 9 additions and 8 deletions

View file

@ -103,12 +103,10 @@
}
},
openStandalone() {
if (window.getEnvironment() !== 'production') {
window.addSetupMenuItems();
this.resetViews();
this.standaloneView = new Whisper.StandaloneRegistrationView();
this.openView(this.standaloneView);
}
window.addSetupMenuItems();
this.resetViews();
this.standaloneView = new Whisper.StandaloneRegistrationView();
this.openView(this.standaloneView);
},
closeStandalone() {
if (this.standaloneView) {

View file

@ -1,5 +1,5 @@
const crc32 = require('buffer-crc32');
const sc_reduce32_module = require('../components/sc_reduce32/sc_reduce32');
const sc_reduce32_module = require('./sc_reduce32');
module.exports = {
mn_encode,

View file

@ -227,13 +227,16 @@
"permissions_popup.html",
"debug_log.html",
"_locales/**",
"libloki/mnemonic.js",
"libloki/sc_reduce32.js",
"mnemonic_languages/**",
"protos/*",
"js/**",
"ts/**/*.js",
"ts/*.js",
"stylesheets/*.css",
"!js/register.js",
"!js/views/standalone_registration_view.js",
"js/views/standalone_registration_view.js",
"app/*",
"preload.js",
"about_preload.js",