We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9942bc3 commit ae89acbCopy full SHA for ae89acb
1 file changed
src/controllers/phishing/phishing.ts
@@ -114,7 +114,7 @@ export class PhishingController extends EventEmitter implements IPhishingControl
114
async #continuouslyUpdatePhishing() {
115
// This prevents redundant requests to the relayer
116
// when the extension reloads multiple times within a short period.
117
- if (this.#updatedAt && this.#updatedAt < PHISHING_UPDATE_INTERVAL) return
+ if (this.#updatedAt && Date.now() - this.#updatedAt < PHISHING_UPDATE_INTERVAL) return
118
119
const res = await fetchWithTimeout(
120
this.#fetch,
0 commit comments