Skip to content

Commit

Permalink
Fixed SSR issue
Browse files Browse the repository at this point in the history
  • Loading branch information
euvl committed Aug 28, 2018
1 parent 406aa26 commit 56e35f3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
canceled: !1
}, args);
}, exports.MutationObserver = function() {
for (var prefixes = [ "", "WebKit", "Moz", "O", "Ms" ], i = 0; i < prefixes.length; i++) {
if ("undefined" != typeof window) for (var prefixes = [ "", "WebKit", "Moz", "O", "Ms" ], i = 0; i < prefixes.length; i++) {
var name = prefixes[i] + "MutationObserver";
if (name in window) return window[name];
}
Expand Down
2 changes: 1 addition & 1 deletion dist/ssr.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
canceled: !1
}, args);
}, exports.MutationObserver = function() {
for (var prefixes = [ "", "WebKit", "Moz", "O", "Ms" ], i = 0; i < prefixes.length; i++) {
if ("undefined" != typeof window) for (var prefixes = [ "", "WebKit", "Moz", "O", "Ms" ], i = 0; i < prefixes.length; i++) {
var name = prefixes[i] + "MutationObserver";
if (name in window) return window[name];
}
Expand Down
2 changes: 1 addition & 1 deletion dist/ssr.nocss.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
canceled: !1
}, args);
}, exports.MutationObserver = function() {
for (var prefixes = [ "", "WebKit", "Moz", "O", "Ms" ], i = 0; i < prefixes.length; i++) {
if ("undefined" != typeof window) for (var prefixes = [ "", "WebKit", "Moz", "O", "Ms" ], i = 0; i < prefixes.length; i++) {
var name = prefixes[i] + "MutationObserver";
if (name in window) return window[name];
}
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const createModalEvent = (args = {}) => {
}

export const MutationObserver = (() => {
if (typeof window !== 'undefined')) {
if (typeof window !== 'undefined') {
const prefixes = ['', 'WebKit', 'Moz', 'O', 'Ms']

for (let i = 0; i < prefixes.length; i++) {
Expand Down

0 comments on commit 56e35f3

Please sign in to comment.