Skip to content

Commit

Permalink
check for window #167 #154
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Dec 29, 2021
1 parent 17e6672 commit cc551bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion draggabilly.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
);
}

}( window, function factory( window, getSize, Unidragger ) {
}( typeof window != 'undefined' ? window : this,
function factory( window, getSize, Unidragger ) {

// -------------------------- helpers & variables -------------------------- //

Expand Down

0 comments on commit cc551bd

Please sign in to comment.