Skip to content

Commit c742c90

Browse files
committed
adds compatibility for server side rendering
1 parent 4893e3c commit c742c90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "storyblok-vue",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Storyblok directive for get editable elements.",
55
"main": "storyblok-vue.js",
66
"repository": {

storyblok-vue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626
})
2727

28-
if (typeof window.storyblok !== 'undefined') {
28+
if (typeof window !== 'undefined' && typeof window.storyblok !== 'undefined') {
2929
Vue.prototype.$storyblok = window.storyblok
3030
}
3131
}

0 commit comments

Comments
 (0)