We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e89ed80 commit cf0374aCopy full SHA for cf0374a
src/Spectacles/index.js
@@ -193,8 +193,8 @@ function grabSourceFromImage(blurredSrc, externalSrc) {
193
194
// Looping through to grab source
195
let curNode = tmpTreeWalker.currentNode;
196
- while (curNode) {
197
- curNode = tmpTreeWalker.nextNode();
+ while (tmpTreeWalker.nextNode()) {
+ curNode = tmpTreeWalker.currentNode;
198
199
// Getting image
200
const children = curNode.childNodes;
@@ -287,4 +287,4 @@ VM.observe(rootNode, (mutList) => {
287
if (!x) return false;
288
removePostSpoiler(x, postType)
289
});
290
-}, { childList: true });
+}, { childList: true });
0 commit comments