Merge pull request #841 from bitpayalan/fix-moment-loader
Alternate Strategy to Fix MomentJS Loading as Node Module When we want it as Global
This commit is contained in:
commit
3b18e7e2ba
3 changed files with 5 additions and 4 deletions
|
|
@ -919,6 +919,9 @@ on supported browsers please check <a href="http://www.webrtc.org/">http://www.w
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="lib/mousetrap/mousetrap.min.js"></script>
|
<script src="lib/mousetrap/mousetrap.min.js"></script>
|
||||||
|
<!-- shell must be loaded before moment due to the way moment loads in a commonjs env -->
|
||||||
|
<script src="js/shell.js"></script>
|
||||||
|
|
||||||
<script src="lib/angular/angular.min.js"></script>
|
<script src="lib/angular/angular.min.js"></script>
|
||||||
<script src="lib/moment/min/moment.min.js"></script>
|
<script src="lib/moment/min/moment.min.js"></script>
|
||||||
<script src="lib/angular-moment/angular-moment.js"></script>
|
<script src="lib/angular-moment/angular-moment.js"></script>
|
||||||
|
|
@ -939,7 +942,6 @@ on supported browsers please check <a href="http://www.webrtc.org/">http://www.w
|
||||||
<script src="lib/qrcode-decoder-js/lib/qrcode-decoder.min.js"></script>
|
<script src="lib/qrcode-decoder-js/lib/qrcode-decoder.min.js"></script>
|
||||||
|
|
||||||
<script src="config.js"></script>
|
<script src="config.js"></script>
|
||||||
<script src="js/shell.js"></script>
|
|
||||||
<script src="js/copayBundle.js"></script>
|
<script src="js/copayBundle.js"></script>
|
||||||
<script src="js/app.js"></script>
|
<script src="js/app.js"></script>
|
||||||
<script src="js/routes.js"></script>
|
<script src="js/routes.js"></script>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
** the renderer into thinking that we are _not_ in a CommonJS environment.
|
** the renderer into thinking that we are _not_ in a CommonJS environment.
|
||||||
*/
|
*/
|
||||||
if (typeof module !== 'undefined') module = {
|
if (typeof module !== 'undefined') module = {
|
||||||
exports: null
|
exports: false
|
||||||
};
|
};
|
||||||
|
|
||||||
// are we running in copay shell?
|
// are we running in copay shell?
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,7 @@ module.exports = function(copay) {
|
||||||
// create the main window
|
// create the main window
|
||||||
mainWindow = new BrowserWindow({
|
mainWindow = new BrowserWindow({
|
||||||
width: config.window.width,
|
width: config.window.width,
|
||||||
height: config.window.height,
|
height: config.window.height
|
||||||
"node-integration": "disable"
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// hide the empty window
|
// hide the empty window
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue