mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-23 05:14:26 +00:00
feat: rename to shortify
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { getCorgiData } from "./common.js";
|
||||
import { getShortifyData } from "./common.js";
|
||||
|
||||
const saveButton = document.body.querySelector("#save-button");
|
||||
const domainInput = document.body.querySelector("#domain-input");
|
||||
@@ -6,7 +6,7 @@ const openIdInput = document.body.querySelector("#openid-input");
|
||||
|
||||
saveButton.addEventListener("click", () => {
|
||||
chrome.storage.local.set({
|
||||
corgi: {
|
||||
shortify: {
|
||||
domain: domainInput.value,
|
||||
openId: openIdInput.value,
|
||||
},
|
||||
@@ -14,9 +14,9 @@ saveButton.addEventListener("click", () => {
|
||||
});
|
||||
|
||||
(async () => {
|
||||
const corgiData = await getCorgiData();
|
||||
if (corgiData) {
|
||||
domainInput.value = corgiData.domain;
|
||||
openIdInput.value = corgiData.openId;
|
||||
const shortifyData = await getShortifyData();
|
||||
if (shortifyData) {
|
||||
domainInput.value = shortifyData.domain;
|
||||
openIdInput.value = shortifyData.openId;
|
||||
}
|
||||
})();
|
||||
|
Reference in New Issue
Block a user