This commit is contained in:
kawamataryo 2024-11-08 09:58:31 +09:00
parent 77f852fbbf
commit c483df4cf9
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "sky-follower-bridge", "name": "sky-follower-bridge",
"displayName": "Sky Follower Bridge", "displayName": "Sky Follower Bridge",
"version": "1.0.2", "version": "1.0.3",
"description": "Instantly find and follow the same users from your Twitter follows on Bluesky.", "description": "Instantly find and follow the same users from your Twitter follows on Bluesky.",
"author": "kawamataryou", "author": "kawamataryou",
"scripts": { "scripts": {

View File

@ -105,7 +105,7 @@ function IndexPopup() {
) )
.run(); .run();
chrome.storage.local.set({ await chrome.storage.local.set({
[STORAGE_KEYS.BSKY_MESSAGE_NAME]: messageName, [STORAGE_KEYS.BSKY_MESSAGE_NAME]: messageName,
}); });
@ -124,12 +124,6 @@ function IndexPopup() {
...(authFactorToken && { authFactorToken: authFactorToken }), ...(authFactorToken && { authFactorToken: authFactorToken }),
}, },
}); });
chrome.storage.local.set({
[STORAGE_KEYS.BSKY_CLIENT_SESSION]: session,
});
await sendToContentScript({
name: messageName,
});
if (error) { if (error) {
if (error.message.includes(AUTH_FACTOR_TOKEN_REQUIRED_ERROR_MESSAGE)) { if (error.message.includes(AUTH_FACTOR_TOKEN_REQUIRED_ERROR_MESSAGE)) {
setIsShowAuthFactorTokenInput(true); setIsShowAuthFactorTokenInput(true);
@ -138,6 +132,12 @@ function IndexPopup() {
setErrorMessage(error.message); setErrorMessage(error.message);
} }
} else { } else {
await chrome.storage.local.set({
[STORAGE_KEYS.BSKY_CLIENT_SESSION]: session,
});
await sendToContentScript({
name: messageName,
});
saveShowAuthFactorTokenInputToStorage(false); saveShowAuthFactorTokenInputToStorage(false);
window.close(); window.close();
} }