session: compat: increment toolbar() usages (new console item)

This commit is contained in:
bordun 2020-11-11 17:24:22 +01:00
parent ff78df42b6
commit 35374a7c1c

View file

@ -239,6 +239,17 @@ var converters = [
}
}
},
{
version: '1.6.2',
widget: (data)=>{
if (data.script && String(data.script).includes('toolbar(')) {
// new "console" submenu in toolbar at index 3
data.script = String(data.script).replace('toolbar(4)', 'toolbar(5)').replace('toolbar(3)', 'toolbar(4)')
}
}
}
]