File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22 "manifest_version" : 3 ,
33 "name" : " Ecsta" ,
44 "short_name" : " Ecsta" ,
5- "version" : " 1.0.0 " ,
5+ "version" : " 1.0.1 " ,
66
77 "description" : " A simple new tab extension meant to stay out of your way while still making for great eye-candy." ,
88
Original file line number Diff line number Diff line change 22 "manifest_version" : 2 ,
33 "name" : " Ecsta" ,
44 "short_name" : " Ecsta" ,
5- "version" : " 1.0.0 " ,
5+ "version" : " 1.0.1 " ,
66
77 "description" : " A simple new tab extension meant to stay out of your way while still making for great eye-candy." ,
88
Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ if (UNSPLASH_API_KEY) {
1313
1414 //Background Fetch Code
1515 function set ( fetched ) {
16- localStorage . setItem ( "fetchedBgImgURL" , fetched . urls . small + "" ) ;
16+ localStorage . setItem ( "fetchedBgImgURL" , fetched . urls . regular + "" ) ;
1717 localStorage . setItem ( "unsplashApiCreditName" , fetched . user . name + "" ) ;
1818 localStorage . setItem ( "unsplashApiCreditLink" , fetched . links . html + "" ) ;
19- document . getElementById ( "background" ) . style . backgroundImage = `url(${ fetched . urls . small } )` ;
19+ document . getElementById ( "background" ) . style . backgroundImage = `url(${ fetched . urls . regular } )` ;
2020 if ( document . getElementById ( "imgCreator" ) ) {
2121 document . getElementById ( "imgCreator" ) . innerText = ( "Image by " + fetched . user . name ) ;
2222 document . getElementById ( "imgCreator" ) . setAttribute ( "href" , fetched . links . html ) ;
2323 }
2424
2525 console . log ( "Using fetched image" ) ;
26- console . log ( "Image URL: " + fetched . urls . small ) ;
26+ console . log ( "Image URL: " + fetched . urls . regular ) ;
2727 //Turn image background into Base64 data URI
28- fetch ( fetched . urls . small )
28+ fetch ( fetched . urls . regular )
2929 . then ( response => response . blob ( ) )
3030 . then ( blob => new Promise ( ( resolve , reject ) => {
3131 const reader = new FileReader ( )
You can’t perform that action at this time.
0 commit comments