зеркало из https://github.com/mozilla/pluotsorbet.git
Merge pull request #892 from brendandahl/chrome-2
More fixes for chrome.
This commit is contained in:
Коммит
a85fd2f7bc
|
@ -188,12 +188,10 @@ var currentlyFocusedTextEditor;
|
|||
setImageData(imageData, img.naturalWidth, img.naturalHeight, context);
|
||||
|
||||
URL.revokeObjectURL(img.src);
|
||||
img.src = '';
|
||||
resolve();
|
||||
}
|
||||
img.onerror = function(e) {
|
||||
URL.revokeObjectURL(img.src);
|
||||
img.src = '';
|
||||
ctx.setAsCurrentContext();
|
||||
reject($.newIllegalArgumentException("error decoding image"));
|
||||
}
|
||||
|
|
|
@ -72,6 +72,11 @@ var fakeContacts = [
|
|||
},],
|
||||
},];
|
||||
|
||||
// Polyfill to enable testing in chrome.
|
||||
if (typeof mozContact === "undefined") {
|
||||
function mozContact() {}
|
||||
}
|
||||
|
||||
// Turn the contact object into a mozContact to make the testing
|
||||
// environment more similar to reality.
|
||||
function toMozContact(fakeContact) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче