Skip to content

Commit 9c4b4d8

Browse files
authored
Revert "chore(window): support vue ssr"
1 parent d35bd93 commit 9c4b4d8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

bin/tsw/runtime/Window.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,3 @@ Window.prototype.enable = function() {
2222
global.windowHasDisabled = false;
2323
};
2424

25-
//兼容vue-server-render
26-
Object.defineProperty(Window.prototype, 'navigator', {
27-
get : function(){
28-
if(this.request) {
29-
return {userAgent:this.request.headers['user-agent']};
30-
}else {
31-
return {userAgent:''};
32-
}
33-
}
34-
});

0 commit comments

Comments
 (0)