0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -05:00

fix module check getting undefined for Firefox

This commit is contained in:
shiawuen 2015-05-07 23:40:49 +08:00
parent 70829d2508
commit 619a3abc5d
3 changed files with 4 additions and 4 deletions

View file

@ -3576,7 +3576,7 @@ if ( top !== win ) {
win.onEditorLoad = null; win.onEditorLoad = null;
} }
} else { } else {
if ( module && module.exports ) { if ( typeof exports == 'object' ) {
module.exports = Squire; module.exports = Squire;
} else { } else {
win.Squire = Squire; win.Squire = Squire;

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@ if ( top !== win ) {
win.onEditorLoad = null; win.onEditorLoad = null;
} }
} else { } else {
if ( module && module.exports ) { if ( typeof exports == 'object' ) {
module.exports = Squire; module.exports = Squire;
} else { } else {
win.Squire = Squire; win.Squire = Squire;