Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit e27c5ac

Browse files
Sam HSam H
authored andcommitted
refactor: delete comments and console logs
1 parent 1706bc7 commit e27c5ac

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
],
99
"scripts": {
1010
"build": "stencil build --prerender",
11-
"build2": "node build.js",
1211
"cz": "git-cz",
1312
"dev": "sd concurrent \"stencil build --dev --watch --no-cache\" \"stencil-dev-server\" ",
1413
"lint": "tslint -p ./tsconfig.json --exclude '**/*.d.ts'",
@@ -18,7 +17,6 @@
1817
"test.watch": "jest --watch --no-cache",
1918
"cypress": "cypress open",
2019
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
21-
"build-linux-webp": "sudo apt install webp",
2220
"st:generate": "node scripts/st-generate.js",
2321
"prepublish": "stencil build --prod",
2422
"firebase:deploy": "node scripts/deploy.js",

src/components/app-img/app-img.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export class Img {
5959
private changeImageFormat() {
6060
if (this.loadSrc && localStorage.getItem('allowWebp') === 'true') {
6161
const idx = this.loadSrc.lastIndexOf('.');
62-
console.log(idx);
6362
const ext = this.loadSrc.substring(idx + 1, this.loadSrc.length);
6463
if (ext === 'png' || ext === 'jpg' || ext === 'jpeg') {
6564
this.loadSrc = `${this.loadSrc.substring(0, idx)}.webp`;
@@ -69,7 +68,6 @@ export class Img {
6968

7069
render() {
7170
this.changeImageFormat();
72-
console.log(this.loadSrc);
7371
return <img class={{ fit: this.fit }} src={this.loadSrc} alt={this.alt} decoding="async" />;
7472
}
7573
}

0 commit comments

Comments
 (0)