Skip to content

Commit 6ff5a85

Browse files
committed
pat-inject: Minor code optimization.
1 parent 0c15615 commit 6ff5a85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pat/inject/inject.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,7 @@ const inject = {
456456
if (cfg.sourceMod === "content") {
457457
$source = $source.contents();
458458
}
459-
let $src;
460-
$src = $source.safeClone();
459+
const $src = $source.safeClone();
461460
for (const img of dom.querySelectorAllAndMe($src[0], "img")) {
462461
$(img).on("load", (e) => {
463462
$(e.currentTarget).trigger("pat-inject-content-loaded");

0 commit comments

Comments
 (0)