shopar-plugin 0.0.8-alpha.0 → 0.0.8-alpha.2

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/README.md CHANGED
@@ -106,12 +106,17 @@ const shopAR = await ShopAR.plugin.setup({
106
106
  });
107
107
 
108
108
  myARButton.onclick = shopAR.launchAR;
109
+ myARButton.disabled = shopAR.launchAR === undefined;
109
110
  my3DButton.onclick = shopAR.launch3D;
111
+ myARButton.disabled = shopAR.launch3D === undefined;
110
112
 
111
113
  myCloseARButton.onclick = shopAR.closeAR;
114
+ myCloseARButton.disabled = shopAR.closeAR === undefined;
112
115
  myClose3DButton.onclick = shopAR.close3D;
116
+ myClose3DButton.disabled = shopAR.close3D === undefined;
113
117
  // or just:
114
118
  myCloseButton.onclick = shopAR.close;
119
+ myCloseButton.disabled = shopAR.close === undefined;
115
120
  ```
116
121
 
117
122
  If you wish to change the SKU or target element at runtime, simply call `setup()` with different parameters.