Skip to content

Declare 'discreteGpuAvailable' with 'var', for ES6 compliance

ES6 requires symbols exported from a module be defined with var, fixes:

gnome-shell[1809]: Some code accessed the property 'discreteGpuAvailable' on the module 'appDisplay'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Edited by Stuart Hayhurst

Merge request reports