mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
extensionDownloader: Fix check for updates with several extensions
When having several extensions installed checking for updates fails.
This is because we are using GET and query params and since we are
sending all the metadata of the extension the server returns 502
when the URL is too long. This error code is ignored safely.
It is only needed to send the version of the extension to check if it
has updates.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2962
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1363
(cherry picked from commit f0d2509dc3)
This commit is contained in:
parent
ac2066673f
commit
03062d0d9d
1 changed files with 3 additions and 1 deletions
|
|
@ -139,7 +139,9 @@ function checkForUpdates() {
|
|||
return;
|
||||
if (extension.hasUpdate)
|
||||
return;
|
||||
metadatas[uuid] = extension.metadata;
|
||||
metadatas[uuid] = {
|
||||
version: extension.metadata.version,
|
||||
};
|
||||
});
|
||||
|
||||
if (Object.keys(metadatas).length === 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue