Merge "Handle div size & fix error for undefined images"
diff --git a/gr-resemble-diff-mode/gr-resemble-diff-mode.js b/gr-resemble-diff-mode/gr-resemble-diff-mode.js
index 1bce2ee..1160bc5 100644
--- a/gr-resemble-diff-mode/gr-resemble-diff-mode.js
+++ b/gr-resemble-diff-mode/gr-resemble-diff-mode.js
@@ -36,7 +36,7 @@
],
attached() {
- resemble.outputSettings({
+ window.resemble.outputSettings({
errorType: 'movement',
largeImageThreshold: 450,
});
@@ -65,7 +65,7 @@
},
_createDiffProcess(base, rev, ignoreColors) {
- const process = resemble(base).compareTo(rev);
+ const process = window.resemble(base).compareTo(rev);
return this._maybeIgnoreColors(process, ignoreColors);
},