X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e00d88f45dc6f3ab8855aa10f8d9200f923f1bf5..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 +}