extensionUtils: Stop using Lang.copyProperties()
It is now deprecated, so use object destructuring instead. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1498
This commit is contained in:
parent
adb984cec7
commit
7521b9c4b2
@ -9,7 +9,6 @@
|
||||
const { Gio, GLib } = imports.gi;
|
||||
|
||||
const Gettext = imports.gettext;
|
||||
const Lang = imports.lang;
|
||||
|
||||
const Config = imports.misc.config;
|
||||
|
||||
@ -211,8 +210,7 @@ function isOutOfDate(extension) {
|
||||
}
|
||||
|
||||
function serializeExtension(extension) {
|
||||
let obj = {};
|
||||
Lang.copyProperties(extension.metadata, obj);
|
||||
let obj = { ...extension.metadata };
|
||||
|
||||
SERIALIZED_PROPERTIES.forEach(prop => {
|
||||
obj[prop] = extension[prop];
|
||||
|
Loading…
Reference in New Issue
Block a user