@plaidev/karte-action-sdk 1.1.210 → 1.1.211

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 {