Pier Angelo Vendrame pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
5661f525
by Pier Angelo Vendrame at 2024-09-02T10:23:38+02:00
1 changed file:
Changes:
... | ... | @@ -3700,18 +3700,20 @@ export class UpdateService { |
3700 | 3700 | |
3701 | 3701 | switch (update.type) {
|
3702 | 3702 | case "major":
|
3703 | - if (!majorUpdate) {
|
|
3703 | + if (!majorUpdate || majorUpdate.unsupported) {
|
|
3704 | 3704 | majorUpdate = update;
|
3705 | 3705 | } else if (
|
3706 | + !update.unsupported &&
|
|
3706 | 3707 | vc.compare(majorUpdate.appVersion, update.appVersion) <= 0
|
3707 | 3708 | ) {
|
3708 | 3709 | majorUpdate = update;
|
3709 | 3710 | }
|
3710 | 3711 | break;
|
3711 | 3712 | case "minor":
|
3712 | - if (!minorUpdate) {
|
|
3713 | + if (!minorUpdate || minorUpdate.unsupported) {
|
|
3713 | 3714 | minorUpdate = update;
|
3714 | 3715 | } else if (
|
3716 | + !update.unsupported &&
|
|
3715 | 3717 | vc.compare(minorUpdate.appVersion, update.appVersion) <= 0
|
3716 | 3718 | ) {
|
3717 | 3719 | minorUpdate = update;
|