We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efb844b commit e2c47e1Copy full SHA for e2c47e1
runtime/proxy-adapter-dom.js
@@ -1,4 +1,6 @@
1
/* global window, document */
2
+import { insert } from 'svelte/internal'
3
+
4
import ErrorOverlay from './overlay.js'
5
6
const removeElement = el => el && el.parentNode && el.parentNode.removeChild(el)
@@ -50,7 +52,7 @@ export const adapter = class ProxyAdapterDom {
50
52
if (!this.insertionPoint) {
51
53
this.insertionPoint = document.createComment(debugName)
54
}
- target.insertBefore(this.insertionPoint, anchor)
55
+ insert(target, this.insertionPoint, anchor)
56
57
58
rerender() {
0 commit comments