places-menu: Fix JS warning
Define class PlacesManager with 'var' instead of 'const', to shut up a gjs warning when accessing it from the extension. https://bugzilla.gnome.org/show_bug.cgi?id=787291
This commit is contained in:
committed by
Florian Müllner
parent
592b4ebacf
commit
cccef0e857
@@ -220,7 +220,7 @@ const DEFAULT_DIRECTORIES = [
|
||||
GLib.UserDirectory.DIRECTORY_VIDEOS,
|
||||
];
|
||||
|
||||
const PlacesManager = new Lang.Class({
|
||||
var PlacesManager = new Lang.Class({
|
||||
Name: 'PlacesManager',
|
||||
|
||||
_init: function() {
|
||||
|
||||
Reference in New Issue
Block a user