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:
parent
70829d2508
commit
619a3abc5d
3 changed files with 4 additions and 4 deletions
|
@ -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
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue