mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue