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) { ...@@ -618,12 +618,12 @@ exports._convertProperties = function (options) {
console.warn('Property "smallIcon" must be of kind res://...'); console.warn('Property "smallIcon" must be of kind res://...');
} }
if (typeof options.timeout === 'boolean') { if (typeof options.timeoutAfter === 'boolean') {
options.timeout = options.timeout ? 3600000 : null; options.timeoutAfter = options.timeoutAfter ? 3600000 : null;
} }
if (options.timeout) { if (options.timeoutAfter) {
options.timeout = parseToInt('timeout', options); options.timeoutAfter = parseToInt('timeoutAfter', options);
} }
options.data = JSON.stringify(options.data); 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