Fixes to get production build working

pull/79/head
sachaaaaa 6 years ago
parent 05c18d42db
commit d8f4d1f313

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

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

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

Loading…
Cancel
Save