Skip to content

Commit

Permalink
I forgot to fucking change this
Browse files Browse the repository at this point in the history
God damn it
  • Loading branch information
kckarnige committed Mar 7, 2024
1 parent 414ac13 commit 1618252
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.crx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Ecsta",
"short_name": "Ecsta",
"version": "1.0.0",
"version": "1.0.1",

"description": "A simple new tab extension meant to stay out of your way while still making for great eye-candy.",

Expand Down
2 changes: 1 addition & 1 deletion manifest.xpi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Ecsta",
"short_name": "Ecsta",
"version": "1.0.0",
"version": "1.0.1",

"description": "A simple new tab extension meant to stay out of your way while still making for great eye-candy.",

Expand Down
8 changes: 4 additions & 4 deletions src/res/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ if (UNSPLASH_API_KEY) {

//Background Fetch Code
function set(fetched) {
localStorage.setItem("fetchedBgImgURL", fetched.urls.small + "");
localStorage.setItem("fetchedBgImgURL", fetched.urls.regular + "");
localStorage.setItem("unsplashApiCreditName", fetched.user.name + "");
localStorage.setItem("unsplashApiCreditLink", fetched.links.html + "");
document.getElementById("background").style.backgroundImage = `url(${fetched.urls.small})`;
document.getElementById("background").style.backgroundImage = `url(${fetched.urls.regular})`;
if (document.getElementById("imgCreator")) {
document.getElementById("imgCreator").innerText = ("Image by " + fetched.user.name);
document.getElementById("imgCreator").setAttribute("href", fetched.links.html);
}

console.log("Using fetched image");
console.log("Image URL: " + fetched.urls.small);
console.log("Image URL: " + fetched.urls.regular);
//Turn image background into Base64 data URI
fetch(fetched.urls.small)
fetch(fetched.urls.regular)
.then(response => response.blob())
.then(blob => new Promise((resolve, reject) => {
const reader = new FileReader()
Expand Down

0 comments on commit 1618252

Please sign in to comment.