parser: delete noSync after converting it to bypass to prevent old session from getting stuck with bypass=true

This commit is contained in:
jean-emmanuel 2018-03-11 00:02:55 +01:00
parent ef17a2c955
commit 08b54d2ef1

View file

@ -36,8 +36,10 @@ var Parser = class Parser {
// Backward compatibility patches
if (props.path) props.address = props.path
if (props.noPip) props.pips = !props.noPip
if (props.noSync) props.bypass = props.noSync
if (props.noSync) {
props.bypass = props.noSync
delete props.noSync
}
// Safe copy widget's options
let defaults = this.widgets[props.type].defaults()