Skip to content

Commit 0473f36

Browse files
committed
Change const to var
1 parent cd882ca commit 0473f36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ const LOG_PREFIX = `[${Me.uuid}] `;
3434
var DEBUG = false;
3535
var DEBUG_TO_FILE = false;
3636

37-
//Session Type
38-
const SESSION_TYPE = GLib.getenv('XDG_SESSION_TYPE');
39-
4037
// Possible Devices
4138
const TOUCHPADS = ['touchpad', 'glidepoint', 'fingersensingpad', 'bcm5974', 'trackpad', 'smartpad'];
4239
const TRACKPOINTS = ['trackpoint', 'accu point', 'trackstick', 'touchstyk', 'pointing stick', 'dualpoint stick'];
@@ -58,6 +55,9 @@ var ALL_OTHERS = OTHERS.slice();
5855
// Methods to enable or disable the touchpad
5956
var METHOD = { GSETTINGS: 0, SYNCLIENT: 1, XINPUT: 2 };
6057

58+
//Session Type
59+
var SESSION_TYPE = GLib.getenv('XDG_SESSION_TYPE');
60+
6161
function createLogFile(filepath) {
6262
const PERMISSIONS_MODE = 0o755;
6363
let isSuccess = false;

0 commit comments

Comments
 (0)