Skip to content

Commit 3c04333

Browse files
authored
Remove self & document from IIFE arguments (#2258)
If self or document don't exist, they'll error instead of getting to the checks. Fixes #2257.
1 parent 328d0e0 commit 3c04333

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/keep-markup/prism-keep-markup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(function (self, document) {
1+
(function () {
22

33
if (typeof self === 'undefined' || !self.Prism || !self.document || !document.createRange) {
44
return;
@@ -96,4 +96,4 @@
9696
env.highlightedCode = env.element.innerHTML;
9797
}
9898
});
99-
}(self, document));
99+
}());

plugins/keep-markup/prism-keep-markup.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)