From ef807619e96a562ca74de0950e67a7a3e49b650b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 28 Oct 2020 20:26:18 +0100 Subject: [PATCH] credentialManager: Shut up a JS warning Plain classes are private to their file, so accessing them from another module results in the following warning: That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Fix by assigning the class to a public variable instead. (Eventually switching to ES6 modules with proper imports/exports will fix this as well) Part-of: --- js/gdm/credentialManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/gdm/credentialManager.js b/js/gdm/credentialManager.js index cf001f4e4..5c4bc7e62 100644 --- a/js/gdm/credentialManager.js +++ b/js/gdm/credentialManager.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported CredentialManager */ -class CredentialManager { +var CredentialManager = class CredentialManager { constructor(service) { this._token = null; this._service = service; @@ -21,4 +21,4 @@ class CredentialManager { get service() { return this._service; } -} +};