Skip to content

Commit

Permalink
fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
therealadityashankar committed Jun 11, 2020
1 parent c8853c0 commit 6ed1e6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions src/wc-codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6ed1e6d

Please sign in to comment.