Skip to content

Commit 5873641

Browse files
committed
SSR support for debug.addIndicators
1 parent 66d386a commit 5873641

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/debug.addIndicators.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
export default function (ScrollMagic) {
2222
var NAMESPACE = "debug.addIndicators";
2323

24+
if (typeof window === 'undefined') {
25+
var window = {};
26+
window.addEventListener = function(){};
27+
}
28+
2429
var
2530
console = window.console || {},
2631
err = Function.prototype.bind.call(console.error || console.log || function () {}, console);

0 commit comments

Comments
 (0)