X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0d9b5a9d90bc4dd9bcb0e081877d8502ae87262e..refs/pull/5239/head:/resources/js/services/vdom.js diff --git a/resources/js/services/vdom.js b/resources/js/services/vdom.js index 89a809084..2095cd2ca 100644 --- a/resources/js/services/vdom.js +++ b/resources/js/services/vdom.js @@ -1,8 +1,8 @@ import { init, attributesModule, - toVNode -} from "snabbdom"; + toVNode, +} from 'snabbdom'; let patcher; @@ -12,7 +12,6 @@ let patcher; function getPatcher() { if (patcher) return patcher; - patcher = init([ attributesModule, ]); @@ -28,4 +27,4 @@ export function patchDomFromHtmlString(domTarget, html) { const contentDom = document.createElement('div'); contentDom.innerHTML = html; getPatcher()(toVNode(domTarget), toVNode(contentDom)); -} \ No newline at end of file +}