window.openPromo({ onComplete: function })
window.openPromo ?
window.openPromo({ onComplete: function }) :
function()
interface WidgetConfig { hideUpdateAppBlock: boolean }
window.openPromo({ onComplete: function, config: { hideUpdateAppBlock: true }})
{ hideUpdateAppBlock: false }