Skip to content

Commit e98c22c

Browse files
author
Vladimir Kudinov
committed
CommonJS Support
1 parent 70e9a06 commit e98c22c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

dist/scrollissimo.min.js

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/scrollissimo.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,5 +290,10 @@
290290
windowHeight = getWindowHeight();
291291
});
292292

293-
win.Scrollissimo = Scrollissimo;
293+
if((module||{}).exports){
294+
module.exports = Scrollissimo;
295+
}else{
296+
win.Scrollissimo = Scrollissimo;
297+
}
298+
294299
})(document, window);

0 commit comments

Comments
 (0)