From 6c8546bf6dbc298e459c0187562a0edd0cd199f8 Mon Sep 17 00:00:00 2001 From: sovanna Date: Mon, 12 Aug 2019 14:51:56 +0200 Subject: [PATCH] fix(solvespace): Tries fix k526s-adapter-assy on Android Restore --- content/software/solvespace.md | 7 ------- templates/page-solvespace.html | 13 +++++++------ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/content/software/solvespace.md b/content/software/solvespace.md index bc3ec33e..d9d32a9c 100644 --- a/content/software/solvespace.md +++ b/content/software/solvespace.md @@ -99,13 +99,6 @@ The KF25 adapter for the cold head is a much simpler device: {% layout_treejs(two=true) %}
- {% end %} diff --git a/templates/page-solvespace.html b/templates/page-solvespace.html index ae3d5f49..6a907578 100644 --- a/templates/page-solvespace.html +++ b/templates/page-solvespace.html @@ -83,17 +83,18 @@ id: 'k526s-adapter', model: solvespace_model_k526s_adapter, params: params_k526s_adapter, - }/*, { + }, { id: 'k526s-adapter-assy', model: solvespace_model_k526s_adapter_assy, params: params_k526s_assy, - }*/]; - - var node; + }, {}]; for (var i = nodes.length - 1; i >= 0; i--) { - node = document.getElementById(nodes[i].id); - node.parentNode.replaceChild(solvespace(nodes[i].model, nodes[i].params), node); + let n = nodes[i]; + if (n.id) { + let node = document.getElementById(n.id); + node.parentNode.replaceChild(solvespace(n.model, n.params), node); + } } })();