Skip to content

Commit

Permalink
ssr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kutlugsahin committed Mar 25, 2019
1 parent 3073e1d commit ea88fde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
{
"name": "smooth-dnd",
"version": "0.9.3",
"version": "0.9.4",
"description": "Drag and Drop library",
"main": "./dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/mediator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 659,7 @@ function Mediator() {
};
}

if (typeof window !== undefined) {
if (typeof window !== 'undefined') {
addStyleToHead();
}

Expand Down
2 changes: 1 addition & 1 deletion src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 71,6 @@ function applyPolyfills() {
}
}

if (typeof window !== undefined) {
if (typeof window !== 'undefined') {
applyPolyfills();
}

0 comments on commit ea88fde

Please sign in to comment.