diff options
author | Simon McVittie <smcv@debian.org> | 2022-03-31 00:17:29 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2022-04-01 12:00:02 +0100 |
commit | 9daa88483cc13823325827fae0ae9a68cdc00a23 (patch) | |
tree | a197ff2de458f09839f6d50ce27b0c19d579e53f | |
parent | c33ccf042009d9d152711ac40304107b21dac937 (diff) |
power: Use var syntax to export object
As per <https://gjs.guide/guides/gjs/intro.html#imports-and-modules>.
This seems to be required by GNOME Shell 42 (gjs 1.72).
Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://github.com/bjarosze/gnome-bluetooth-quick-connect/pull/55
Gbp-Pq: Name power-Use-var-syntax-to-export-object.patch
-rw-r--r-- | power.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3,7 +3,7 @@ const UPower = imports.gi.UPowerGlib; const Me = ExtensionUtils.getCurrentExtension(); const Utils = Me.imports.utils; -class UPowerBatteryProvider { +var UPowerBatteryProvider = class { constructor(logger) { this._upower_client = UPower.Client.new(); this._logger = logger; |