mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Use ??= in more places (#163594)
This commit is contained in:
@@ -35,9 +35,7 @@ export class SimpleBrowserManager {
|
||||
const url = state?.url ?? '';
|
||||
const view = SimpleBrowserView.restore(this.extensionUri, url, panel);
|
||||
this.registerWebviewListeners(view);
|
||||
if (!this._activeView) {
|
||||
this._activeView = view;
|
||||
}
|
||||
this._activeView ??= view;
|
||||
}
|
||||
|
||||
private registerWebviewListeners(view: SimpleBrowserView) {
|
||||
|
||||
Reference in New Issue
Block a user