Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit 34485a6

Browse files
committed
feat: check current address only when available
1 parent f33bc7b commit 34485a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content-script/hooks/twitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ class TwitterHook {
234234
const unidata = await this.main.getUnidata();
235235
// this.main.xlog('info', 'Now address is: '+ this.main.address);
236236
let newStatus = '';
237-
if (settings.syncing !== false && settings.address) {
237+
if (settings.syncing !== false && settings.address && this.main.address) {
238238
if (settings.address.toLowerCase() !== this.main.address?.toLowerCase()) {
239239
newStatus = 'Address changed.';
240240
this.main.xlog('warn', `Old address: ${settings.address}, now: ${this.main.address}`);

0 commit comments

Comments
 (0)