@@ -261,7 +261,7 @@ function evaluateConfig(e, s, t) {
261
261
const { hasJavascript : r , hass : i } = t ;
262
262
return r && typeof i < "u" && ( a = evaluateJavascript ( a , i ) ) , a ;
263
263
}
264
- const version = "0.0.12 " ;
264
+ const version = "0.0.13 " ;
265
265
( async function e ( ) {
266
266
const s = window . loadCardHelpers ? await window . loadCardHelpers ( ) : void 0 ;
267
267
class t extends HTMLElement {
@@ -336,6 +336,9 @@ const version = "0.0.12";
336
336
else throw new Error (
337
337
`The template "${ this . _originalConfig . template } " doesn't exist in streamline_templates`
338
338
) ;
339
+ this . _hasJavascriptTemplate = JSON . stringify (
340
+ this . _templateConfig
341
+ ) . includes ( "_javascript" ) ;
339
342
}
340
343
parseConfig ( ) {
341
344
const i = this . _config ?? { } ;
@@ -349,7 +352,7 @@ const version = "0.0.12";
349
352
) , deepEqual ( i , this . _config ) === ! 1 ;
350
353
}
351
354
setConfig ( i ) {
352
- if ( this . _originalConfig = i , this . prepareConfig ( ) , this . _hasJavascriptTemplate = JSON . stringify ( i ) . includes ( "_javascript" ) , this . parseConfig ( ) !== ! 1 ) {
355
+ if ( this . _originalConfig = i , this . prepareConfig ( ) , this . parseConfig ( ) !== ! 1 ) {
353
356
if ( typeof this . _card > "u" ) {
354
357
if ( typeof this . _config . type > "u" )
355
358
throw new Error ( "[Streamline Card] You need to define a type" ) ;
0 commit comments