mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
ibusManager: Use const correctly
Per ES6, a variable declared const should only be valid inside its lexical scope. Previously, GJS would accept this code, but that will change in the SpiderMonkey JS engine in the next release of GJS. https://bugzilla.gnome.org/show_bug.cgi?id=778425
This commit is contained in:
parent
d017e6749c
commit
f7752ac699
1 changed files with 2 additions and 1 deletions
|
|
@ -6,10 +6,11 @@ const Lang = imports.lang;
|
|||
const Mainloop = imports.mainloop;
|
||||
const Signals = imports.signals;
|
||||
|
||||
let IBusCandidatePopup;
|
||||
try {
|
||||
var IBus = imports.gi.IBus;
|
||||
_checkIBusVersion(1, 5, 2);
|
||||
const IBusCandidatePopup = imports.ui.ibusCandidatePopup;
|
||||
IBusCandidatePopup = imports.ui.ibusCandidatePopup;
|
||||
} catch (e) {
|
||||
var IBus = null;
|
||||
log(e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue