mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-17 17:22:23 -06:00
fix bug
This commit is contained in:
parent
77f852fbbf
commit
c483df4cf9
@ -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": {
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user