This repository was archived by the owner on Feb 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change 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'" ,
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" ,
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments