diff --git a/js/ui/status/remoteAccess.js b/js/ui/status/remoteAccess.js index 43435ba48..1ed87931a 100644 --- a/js/ui/status/remoteAccess.js +++ b/js/ui/status/remoteAccess.js @@ -23,10 +23,8 @@ class RemoteAccessApplet extends SystemIndicator { this._handles = new Set(); this._indicator = this._addIndicator(); - this._indicator.set({ - style_class: 'screencast-indicator', - icon_name: 'media-record-symbolic', - }); + this._indicator.icon_name = 'media-record-symbolic'; + this._indicator.add_style_class_name('screencast-indicator'); controller.connect('new-handle', (o, handle) => { this._onNewHandle(handle);