Skip to content

Commit 1d88d9b

Browse files
committed
use isServer flag instead of runtime detection
1 parent 3245c72 commit 1d88d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entries/web-runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Vue.prototype.$mount = function (
2626
el?: string | Element,
2727
hydrating?: boolean
2828
): Component {
29-
el = el && inBrowser ? query(el) : undefined
29+
el = el && !config._isServer ? query(el) : undefined
3030
return this._mount(el, hydrating)
3131
}
3232

0 commit comments

Comments
 (0)