Skip to content

Commit

Permalink
SSR suport #20 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartakusMd authored and rigor789 committed Apr 18, 2017
1 parent ebe88eb commit 9bd66ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const install = function(Vue) {
Vue.prototype.$scrollTo = VueScrollTo.scrollTo;
};

if (window.Vue) {
if (typeof window !== "undefined" && window.Vue) {
window.VueScrollTo = VueScrollTo;
Vue.use(install);
}
Expand Down

0 comments on commit 9bd66ca

Please sign in to comment.