import { elementDefine } from '../index';
import { SwcHTMLScriptElementBase } from '../elements/base/SwcHTMLScriptElementBase';

@elementDefine({ name: 'swc-when-script', extends: 'script' })
export class SwcWhenScript extends SwcHTMLScriptElementBase {
  connectedCallback() { if (this.style.display !== 'contents') { this.style.display = 'none'; } }
}
