mirror of
https://github.com/dbgate/dbgate
synced 2024-11-23 00:43:10 +00:00
patched svelte crash #105
This commit is contained in:
parent
e3d1e4f53e
commit
c24cc1dc72
13
patches/svelte+3.35.0.patch
Normal file
13
patches/svelte+3.35.0.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/node_modules/svelte/internal/index.js b/node_modules/svelte/internal/index.js
|
||||
index ee20a17..7b6fff8 100644
|
||||
--- a/node_modules/svelte/internal/index.js
|
||||
+++ b/node_modules/svelte/internal/index.js
|
||||
@@ -200,7 +200,7 @@ function insert(target, node, anchor) {
|
||||
target.insertBefore(node, anchor || null);
|
||||
}
|
||||
function detach(node) {
|
||||
- node.parentNode.removeChild(node);
|
||||
+ if (node.parentNode) node.parentNode.removeChild(node);
|
||||
}
|
||||
function destroy_each(iterations, detaching) {
|
||||
for (let i = 0; i < iterations.length; i += 1) {
|
Loading…
Reference in New Issue
Block a user