@plaidev/karte-action-sdk 1.1.210 → 1.1.211

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.
@@ -2141,7 +2141,7 @@ function create(App, options = {
2141
2141
  window.addEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2142
2142
  window.addEventListener('beforeunload', dispatchDestroyEvent, false);
2143
2143
  let modalCleanup = NOOP;
2144
- if (options.karteTemplate?.template_type === 'script') {
2144
+ if (options.karteTemplate?.template_content_types.includes('script')) {
2145
2145
  runScript$1(options);
2146
2146
  }
2147
2147
  else {
package/dist/index.es.js CHANGED
@@ -2199,7 +2199,7 @@ function create(App, options = {
2199
2199
  window.addEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2200
2200
  window.addEventListener('beforeunload', dispatchDestroyEvent, false);
2201
2201
  let modalCleanup = NOOP;
2202
- if (options.karteTemplate?.template_type === 'script') {
2202
+ if (options.karteTemplate?.template_content_types.includes('script')) {
2203
2203
  runScript$1(options);
2204
2204
  }
2205
2205
  else {