提交 5fccf71d 编写于 作者: O owen-m1

#1646: Fix SSR rendering

上级 9fd57695
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
* @license MIT * @license MIT
*/ */
import './windowCheck.js'; // Always import first
import { version } from '../package.json'; import { version } from '../package.json';
import { IE11OrLess, Edge, FireFox, Safari, IOS, ChromeForAndroid } from './BrowserInfo.js'; import { IE11OrLess, Edge, FireFox, Safari, IOS, ChromeForAndroid } from './BrowserInfo.js';
...@@ -92,10 +94,6 @@ function _dispatchEvent(info) { ...@@ -92,10 +94,6 @@ function _dispatchEvent(info) {
} }
if (typeof window === "undefined" || !window.document) {
throw new Error("Sortable.js requires a window with a document");
}
let dragEl, let dragEl,
parentEl, parentEl,
ghostEl, ghostEl,
......
if (typeof window === "undefined" || !window.document) {
throw new Error("Sortable.js requires a window with a document");
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册