Remove textContent fallback for IE
This commit is contained in:
@@ -36,12 +36,11 @@
|
|||||||
codepenButton.href = form.action;
|
codepenButton.href = form.action;
|
||||||
codepenButton.addEventListener('click', function (event) {
|
codepenButton.addEventListener('click', function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const innerText = document.documentMode ? 'textContent' : 'innerText';
|
const html = document.getElementById('example-html-source').innerText;
|
||||||
const html = document.getElementById('example-html-source')[innerText];
|
const js = document.getElementById('example-js-source').innerText;
|
||||||
const js = document.getElementById('example-js-source')[innerText];
|
|
||||||
const workerContainer = document.getElementById('example-worker-source');
|
const workerContainer = document.getElementById('example-worker-source');
|
||||||
const worker = workerContainer ? workerContainer[innerText] : undefined;
|
const worker = workerContainer ? workerContainer.innerText : undefined;
|
||||||
const pkgJson = document.getElementById('example-pkg-source')[innerText];
|
const pkgJson = document.getElementById('example-pkg-source').innerText;
|
||||||
|
|
||||||
const unique = new Set();
|
const unique = new Set();
|
||||||
const localResources = (js.match(/'(\.\/)?data\/[^']*/g) || [])
|
const localResources = (js.match(/'(\.\/)?data\/[^']*/g) || [])
|
||||||
|
|||||||
Reference in New Issue
Block a user