mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-09 13:41:23 -06:00
fix bug
This commit is contained in:
parent
77f852fbbf
commit
c483df4cf9
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "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.",
|
||||
"author": "kawamataryou",
|
||||
"scripts": {
|
||||
|
@ -105,7 +105,7 @@ function IndexPopup() {
|
||||
)
|
||||
.run();
|
||||
|
||||
chrome.storage.local.set({
|
||||
await chrome.storage.local.set({
|
||||
[STORAGE_KEYS.BSKY_MESSAGE_NAME]: messageName,
|
||||
});
|
||||
|
||||
@ -124,12 +124,6 @@ function IndexPopup() {
|
||||
...(authFactorToken && { authFactorToken: authFactorToken }),
|
||||
},
|
||||
});
|
||||
chrome.storage.local.set({
|
||||
[STORAGE_KEYS.BSKY_CLIENT_SESSION]: session,
|
||||
});
|
||||
await sendToContentScript({
|
||||
name: messageName,
|
||||
});
|
||||
if (error) {
|
||||
if (error.message.includes(AUTH_FACTOR_TOKEN_REQUIRED_ERROR_MESSAGE)) {
|
||||
setIsShowAuthFactorTokenInput(true);
|
||||
@ -138,6 +132,12 @@ function IndexPopup() {
|
||||
setErrorMessage(error.message);
|
||||
}
|
||||
} else {
|
||||
await chrome.storage.local.set({
|
||||
[STORAGE_KEYS.BSKY_CLIENT_SESSION]: session,
|
||||
});
|
||||
await sendToContentScript({
|
||||
name: messageName,
|
||||
});
|
||||
saveShowAuthFactorTokenInputToStorage(false);
|
||||
window.close();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user