Excluded gists from InstantClick (#18289)

This commit is contained in:
Nate Pelzel 2022-08-30 15:10:59 -06:00 committed by GitHub
parent 8550ac3db1
commit e25a237ff0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -419,6 +419,8 @@ var instantClick
// a script add or delete script elements, so we need to put script
// elements in an array to loop through them correctly.
for (i = 0; i < scriptElementsInDOM.length; i++) {
// gist liquid tags are handled seperately via app/javascript/utilities/gist.js
if(scriptElementsInDOM[i].id === 'gist-ltag') continue;
scriptElementsToCopy.push(scriptElementsInDOM[i])
}