v1.7.3/firefox support uid
This commit is contained in:
+4
-3
@@ -127,8 +127,8 @@ export const scrollThread = () => {
|
||||
}, 250);
|
||||
};
|
||||
|
||||
export const getUserUid = async () =>
|
||||
new Promise((resolve, reject) => {
|
||||
export const getUserUid = async () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
CHROME_OR_BROWSER.runtime.sendMessage(
|
||||
{
|
||||
type: 'GET_AUTH',
|
||||
@@ -136,10 +136,11 @@ export const getUserUid = async () =>
|
||||
(response) => {
|
||||
const { uid } = response;
|
||||
updateLocalData({ userUid: uid });
|
||||
resolve(uid);
|
||||
resolve(response);
|
||||
}
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
export const fetcher = async ({ endpoint, method, ...args }) => {
|
||||
const url = `${API_HOST}/${endpoint}`;
|
||||
|
||||
Reference in New Issue
Block a user