Compare commits
No commits in common. "a31550e20529835b0c22542204ab875af1251dc4" and "4ed59e5b664196822516a8d9f302d95e8b2729f5" have entirely different histories.
a31550e205
...
4ed59e5b66
@ -35,11 +35,11 @@ var functions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
functions.getFiles("emoji").then(data => {
|
functions.getFiles("emoji").then(data => {
|
||||||
if (!data.error) chrome.runtime.sendMessage(["storeFiles", data.body, "emoji"]);
|
if (!data.error) chrome.runtime.sendMessage(["storeFiles", data, "emoji"]);
|
||||||
else console.error(data.error);
|
else console.error(data.error);
|
||||||
});
|
});
|
||||||
functions.getFiles("sticker").then(data => {
|
functions.getFiles("sticker").then(data => {
|
||||||
if (!data.error) chrome.runtime.sendMessage(["storeFiles", data.body, "sticker"]);
|
if (!data.error) chrome.runtime.sendMessage(["storeFiles", data, "sticker"]);
|
||||||
else console.error(data.error);
|
else console.error(data.error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -269,8 +269,6 @@ function createEmojiSquare({internalId, data, animationStyle, currentId_emoji, c
|
|||||||
errorDiv.innerText = "";
|
errorDiv.innerText = "";
|
||||||
try {
|
try {
|
||||||
await callContentScript("deleteFile", this.dataset["currentId_"+mode]);
|
await callContentScript("deleteFile", this.dataset["currentId_"+mode]);
|
||||||
await db.updateImage(this.dataset.internalId, {["currentId_"+mode]: null});
|
|
||||||
delete this.dataset["currentId_"+mode];
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.dataset.state = lastState;
|
this.dataset.state = lastState;
|
||||||
select.disabled = false;
|
select.disabled = false;
|
||||||
@ -289,8 +287,7 @@ function createEmojiSquare({internalId, data, animationStyle, currentId_emoji, c
|
|||||||
},
|
},
|
||||||
async delete() {
|
async delete() {
|
||||||
await db.deleteImage(this.dataset.internalId);
|
await db.deleteImage(this.dataset.internalId);
|
||||||
if (this.dataset["currentId_emoji"]) callContentScript("deleteFile", this.dataset["currentId_emoji"]).catch(displayError);
|
if (this.dataset["currentId_"+mode]) callContentScript("deleteFile", this.dataset["currentId_"+mode]).catch(displayError);
|
||||||
if (this.dataset["currentId_sticker"]) callContentScript("deleteFile", this.dataset["currentId_sticker"]).catch(displayError);
|
|
||||||
this.remove();
|
this.remove();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user