mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Add support for AMD
This commit is contained in:
parent
8d764f6638
commit
3f13435182
3 changed files with 9 additions and 1 deletions
|
@ -3869,6 +3869,10 @@ proto.decreaseListLevel = command( 'modifyBlocks', decreaseListLevel );
|
||||||
|
|
||||||
if ( typeof exports === 'object' ) {
|
if ( typeof exports === 'object' ) {
|
||||||
module.exports = Squire;
|
module.exports = Squire;
|
||||||
|
} else if ( typeof define === 'function' && define.amd ) {
|
||||||
|
define( function() {
|
||||||
|
return Squire;
|
||||||
|
} );
|
||||||
} else {
|
} else {
|
||||||
win.Squire = Squire;
|
win.Squire = Squire;
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
if ( typeof exports === 'object' ) {
|
if ( typeof exports === 'object' ) {
|
||||||
module.exports = Squire;
|
module.exports = Squire;
|
||||||
|
} else if ( typeof define === 'function' && define.amd ) {
|
||||||
|
define( function() {
|
||||||
|
return Squire;
|
||||||
|
} );
|
||||||
} else {
|
} else {
|
||||||
win.Squire = Squire;
|
win.Squire = Squire;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue