better shadow DOM missing error text
This commit is contained in:
parent
a7c89f3476
commit
2f7b09748f
|
@ -452,7 +452,7 @@ toggle.addEventListener('click', (e) => {
|
||||||
}
|
}
|
||||||
root.shadowRoot.appendChild(document.importNode(template.content, true));
|
root.shadowRoot.appendChild(document.importNode(template.content, true));
|
||||||
} else {
|
} else {
|
||||||
root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> Shadow DOM is needed to display encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
|
root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> A browser supporting Shadow DOM is needed to run encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1711,7 +1711,7 @@ toggle.addEventListener('click', (e) => {
|
||||||
}
|
}
|
||||||
root.shadowRoot.appendChild(document.importNode(template.content, true));
|
root.shadowRoot.appendChild(document.importNode(template.content, true));
|
||||||
} else {
|
} else {
|
||||||
root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> Shadow DOM is needed to display encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
|
root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> A browser supporting Shadow DOM is needed to run encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,7 @@
|
||||||
}
|
}
|
||||||
root.shadowRoot.appendChild(document.importNode(template.content, true));
|
root.shadowRoot.appendChild(document.importNode(template.content, true));
|
||||||
} else {
|
} else {
|
||||||
root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> Shadow DOM is needed to display encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
|
root.innerHTML = '<p class="site-error"><strong style="font-weight:bold">Site error:</strong> A browser supporting Shadow DOM is needed to run encapsulated demos. The browser does not have an issue with the demo code itself.</p>';
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user