Skip to content

Commit

Permalink
SSR support for debug.addIndicators
Browse files Browse the repository at this point in the history
  • Loading branch information
bitworking committed Mar 15, 2020
1 parent 66d386a commit 5873641
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/debug.addIndicators.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
export default function (ScrollMagic) {
var NAMESPACE = "debug.addIndicators";

if (typeof window === 'undefined') {
var window = {};
window.addEventListener = function(){};
}

var
console = window.console || {},
err = Function.prototype.bind.call(console.error || console.log || function () {}, console);
Expand Down

0 comments on commit 5873641

Please sign in to comment.