Skip to content
Dashboard
Open .md fileOpen llms.txtA list of every page, for AI tools

Reference

Iris.update

Changes widget options after Iris.init. Today it changes only launcher.

Iris.update(options: { launcher?: boolean }): void

Hide the launcher on a page where it covers your own UI. Show it again on other pages.

checkout.js
// Checkout page: hide the launcher
Iris.update({ launcher: false });
// Other pages: show it again
Iris.update({ launcher: true });

Iris.init starts the widget once, with every option. Iris.update changes an option while the widget runs, with no reload. Call Iris.init first: Iris.update before it changes nothing.

launcherbooleanOptional#

Shows the launcher. Pass false to hide it and open the widget from your own button with data-iris-open or Iris.open(). To change it later, call Iris.update.

Default: true

Example: launcher: false

MessageWhat happenedFix
Iris: <method> ran before Iris.init, so nothing changed.#identify, logout or update ran before Iris.init. After an early identify, the contact stays anonymous.Call Iris.init({ appId }) first. Calls made before iris.js loads wait in a queue, in order.
Iris: update ignored <option>, because update changes only launcher.#Iris.update got an option other than launcher. Iris applied launcher and ignored the rest.Pass that option to Iris.init.