Skip to content

Commit

Permalink
Use classList
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz authored and jmannanc committed Oct 26, 2020
1 parent 62fece8 commit 256b87b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { addClass } from 'vs/base/browser/dom';
import { IMouseWheelEvent } from 'vs/base/browser/mouseEvent';
import { Emitter } from 'vs/base/common/event';
import { Disposable, IDisposable } from 'vs/base/common/lifecycle';
Expand Down Expand Up @@ -103,9 +102,7 @@ export abstract class BaseWebview<T extends HTMLElement> extends Disposable {
const subscription = this._register(this.on(WebviewMessageChannels.webviewReady, () => {
this._logService.debug(`Webview(${this.id}): webview ready`);

if (this.element) {
addClass(this.element, 'ready');
}
this.element?.classList.add('ready');

if (this._state.type === WebviewState.Type.Initializing) {
this._state.pendingMessages.forEach(({ channel, data }) => this.doPostMessage(channel, data));
Expand Down

0 comments on commit 256b87b

Please sign in to comment.