ui.shipaid.com 0.3.131 → 0.3.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget.es.js +3 -5
- package/dist/widget.iife.js +13 -13
- package/dist/widget.umd.js +13 -13
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -6346,11 +6346,9 @@ class ShipAidCheckoutPlus extends s$1 {
|
|
|
6346
6346
|
this._hasProtectionInCart = Boolean(protectionItem);
|
|
6347
6347
|
this._desiredProtection = this._hasProtectionInCart;
|
|
6348
6348
|
if (this._hasProtectionInCart) {
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
this._removeTogglePreference();
|
|
6353
|
-
}
|
|
6349
|
+
this._uiMode = "toggle";
|
|
6350
|
+
const pref = this._readTogglePreference();
|
|
6351
|
+
if (!pref) this._persistTogglePreference("checked");
|
|
6354
6352
|
} else {
|
|
6355
6353
|
this._maybeRevertToLegacy();
|
|
6356
6354
|
}
|