emmitted -> emitted
This commit is contained in:
parent
9609b36b3c
commit
042825e8fb
2 changed files with 2 additions and 2 deletions
|
@ -409,7 +409,7 @@ var registerWebViewElement = function() {
|
||||||
if (internal.webContents) {
|
if (internal.webContents) {
|
||||||
return internal.webContents[m].apply(internal.webContents, args);
|
return internal.webContents[m].apply(internal.webContents, args);
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Cannot call ${m} because the webContents is unavailable. The WebView must be attached to the DOM and the dom-ready event emmitted before this method can be called.`);
|
throw new Error(`Cannot call ${m} because the webContents is unavailable. The WebView must be attached to the DOM and the dom-ready event emitted before this method can be called.`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -565,7 +565,7 @@ describe('<webview> tag', function() {
|
||||||
it('throws a custom error when an API method is called before the event is emitted', function() {
|
it('throws a custom error when an API method is called before the event is emitted', function() {
|
||||||
assert.throws(function () {
|
assert.throws(function () {
|
||||||
webview.stop();
|
webview.stop();
|
||||||
}, 'Cannot call stop because the webContents is unavailable. The WebView must be attached to the DOM and the dom-ready event emmitted before this method can be called.');
|
}, 'Cannot call stop because the webContents is unavailable. The WebView must be attached to the DOM and the dom-ready event emitted before this method can be called.');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue