mirror of
https://github.com/lumehq/lume.git
synced 2025-09-19 18:30:32 +02:00
auto upgraded http to https
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
}
|
||||
},
|
||||
"security": {
|
||||
"csp": null
|
||||
"csp": "upgrade-insecure-requests"
|
||||
},
|
||||
"updater": {
|
||||
"active": true,
|
||||
|
@@ -38,7 +38,9 @@ export const useProfileMetadata = (pubkey: string) => {
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (!cacheProfile) {
|
||||
let ignore = false;
|
||||
|
||||
if (!cacheProfile && !ignore) {
|
||||
fetchProfileMetadata(pubkey)
|
||||
.then((res: any) => {
|
||||
// update state
|
||||
@@ -48,6 +50,10 @@ export const useProfileMetadata = (pubkey: string) => {
|
||||
})
|
||||
.catch(console.error);
|
||||
}
|
||||
|
||||
return () => {
|
||||
ignore = true;
|
||||
};
|
||||
}, [cacheProfile, insertPlebToDB, pubkey]);
|
||||
|
||||
if (cacheProfile) {
|
||||
|
Reference in New Issue
Block a user