Skip to content

Commit fe6a998

Browse files
committed
fix cache loading in int tests
1 parent 5f29076 commit fe6a998

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6261,9 +6261,11 @@
62616261
this.assertRecorderScript(true);
62626262
return new Promise(_.bind(function (resolve) {
62636263
this.randomStub.restore();
6264-
this.getRecorderScript().addEventListener('load', function() {
6264+
if (window['__mp_recorder']) {
62656265
resolve();
6266-
});
6266+
} else {
6267+
this.getRecorderScript().addEventListener('load', resolve);
6268+
}
62676269
}, this))
62686270
}, this))
62696271
.then(_.bind(function () {

0 commit comments

Comments
 (0)