Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
'use strict' was removed, deleting of the unneeded variable (#1)
Browse files Browse the repository at this point in the history
- ES2015 module has support of 'use strict' by default
- `var template;` is unneeded
  • Loading branch information
Ihor Gevorkyan authored and criticalbh committed Jan 6, 2018
1 parent 7fa0601 commit 7afb75b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions app/components/layout/c-banner.comp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"use strict";

export class CBannerComponent extends HTMLElement {
constructor() {
super();
Expand All @@ -14,16 +14,13 @@ export class CBannerComponent extends HTMLElement {
}

connectedCallback() {
var template = `
<div class="banner">
<div class="container">
<h1 class="logo-font">conduit</h1>
<p>A place to share your knowledge.</p>
</div>
this.innerHTML = `
<div class="banner">
<div class="container">
<h1 class="logo-font">conduit</h1>
<p>A place to share your knowledge.</p>
</div>
</div>
`;
this.innerHTML = template;
}


}

0 comments on commit 7afb75b

Please sign in to comment.