Skip to content

Commit

Permalink
Revert "chore(window): support vue ssr"
Browse files Browse the repository at this point in the history
  • Loading branch information
yuukinan authored and RobinzZH committed Jun 22, 2018
1 parent 19139f9 commit b924c7b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions bin/tsw/runtime/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,3 @@ Window.prototype.enable = function() {
global.windowHasDisabled = false;
};

//兼容vue-server-render
Object.defineProperty(Window.prototype, 'navigator', {
get : function(){
if(this.request) {
return {userAgent:this.request.headers['user-agent']};
}else {
return {userAgent:''};
}
}
});

0 comments on commit b924c7b

Please sign in to comment.