Commit dc383144 by russaa Committed by Sebastián Katzer

FIX option parsing for timeoutAfter: must use property timeoutAfter instead of…

FIX option parsing for timeoutAfter: must use property timeoutAfter instead of property timeout (#1692)
parent 376871d3
......@@ -618,12 +618,12 @@ exports._convertProperties = function (options) {
console.warn('Property "smallIcon" must be of kind res://...');
}
if (typeof options.timeout === 'boolean') {
options.timeout = options.timeout ? 3600000 : null;
if (typeof options.timeoutAfter === 'boolean') {
options.timeoutAfter = options.timeoutAfter ? 3600000 : null;
}
if (options.timeout) {
options.timeout = parseToInt('timeout', options);
if (options.timeoutAfter) {
options.timeoutAfter = parseToInt('timeoutAfter', options);
}
options.data = JSON.stringify(options.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment