Skip to content

Commit

Permalink
COM-739 Temporarily removes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqwalji authored May 19, 2021
1 parent 03cad06 commit 9c23a98
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,24 +110,6 @@ function preview(text, target)
var resultFragment = xslt.transformToFragment(parse(text).replace(/<[eis]>[^<]*<\/[eis]>/g, ''), targetDoc),
lastUpdated = target;

// https://bugs.chromium.org/p/chromium/issues/detail?id=266305
if (typeof window !== 'undefined' && 'chrome' in window)
{
resultFragment.querySelectorAll('script').forEach(
function (oldScript)
{
var newScript = document.createElement('script');
for (var attribute of oldScript['attributes'])
{
newScript['setAttribute'](attribute.name, attribute.value);
}
newScript.textContent = oldScript.textContent;

oldScript.parentNode.replaceChild(newScript, oldScript);
}
);
}

// Compute and refresh hashes
if (HINT.hash)
{
Expand Down

0 comments on commit 9c23a98

Please sign in to comment.