[MM-43632] Ensure handleURLView is called when removing the target URL (#2074)

This commit is contained in:
Devin Binnie
2022-04-25 17:18:23 -04:00
committed by GitHub
parent 9b3d37e953
commit 90576570e2
2 changed files with 9 additions and 1 deletions

View File

@@ -360,6 +360,8 @@ export class MattermostView extends EventEmitter {
log.silly('MattermostView.handleUpdateTarget', {tabName: this.tab.name, url});
if (url && !urlUtils.isInternalURL(urlUtils.parseURL(url), this.tab.server.url)) {
this.emit(UPDATE_TARGET_URL, url);
} else {
this.emit(UPDATE_TARGET_URL);
}
}