diff --git a/index.js b/index.js index d14ebe1..7513fc6 100644 --- a/index.js +++ b/index.js @@ -9789,8 +9789,8 @@ class WCCodeMirror extends HTMLElement { const theme = this.hasAttribute('theme') ? this.getAttribute('theme') : 'default'; let readOnly = this.getAttribute('readonly'); - if(readOnly === '') readOnly = true; - else if(readOnly !== 'nocursor') readOnly = false; + if (readOnly === '') readOnly = true; + else if (readOnly !== 'nocursor') readOnly = false; let content = ''; const innerScriptTag = this.querySelector('script'); diff --git a/src/wc-codemirror.js b/src/wc-codemirror.js index 7878418..b8877d6 100644 --- a/src/wc-codemirror.js +++ b/src/wc-codemirror.js @@ -46,8 +46,8 @@ export class WCCodeMirror extends HTMLElement { const theme = this.hasAttribute('theme') ? this.getAttribute('theme') : 'default'; let readOnly = this.getAttribute('readonly'); - if(readOnly === '') readOnly = true; - else if(readOnly !== 'nocursor') readOnly = false; + if (readOnly === '') readOnly = true; + else if (readOnly !== 'nocursor') readOnly = false; let content = ''; const innerScriptTag = this.querySelector('script');