mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Default value for property on dialog (#247)
This commit is contained in:
parent
4551afc6dc
commit
56b0d8722b
@ -23,12 +23,12 @@ class Dialog {
|
|||||||
* @param {string} message
|
* @param {string} message
|
||||||
* @param {(string|undefined)} defaultValue
|
* @param {(string|undefined)} defaultValue
|
||||||
*/
|
*/
|
||||||
constructor(client, type, message, defaultValue) {
|
constructor(client, type, message, defaultValue = '') {
|
||||||
this._client = client;
|
this._client = client;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this._message = message;
|
this._message = message;
|
||||||
this._handled = false;
|
this._handled = false;
|
||||||
this._defaultValue = defaultValue || '';
|
this._defaultValue = defaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user