Expand error message
This commit is contained in:
parent
674af4211c
commit
bad4816976
2 changed files with 2 additions and 2 deletions
|
@ -409,7 +409,7 @@ var registerWebViewElement = function() {
|
|||
if (internal.webContents) {
|
||||
return internal.webContents[m].apply(internal.webContents, args);
|
||||
} else {
|
||||
throw new Error(`Cannot call ${m} before the dom-ready event is emitted`);
|
||||
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.`);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue