(previousVersion)
| 800 | // True if the major version of Vimium has changed. |
| 801 | // - previousVersion: this will be null for new installs. |
| 802 | function majorVersionHasIncreased(previousVersion) { |
| 803 | const currentVersion = Utils.getCurrentVersion(); |
| 804 | if (previousVersion == null) return false; |
| 805 | const currentMajorVersion = currentVersion.split(".").slice(0, 2).join("."); |
| 806 | const previousMajorVersion = previousVersion.split(".").slice(0, 2).join("."); |
| 807 | return Utils.compareVersions(currentMajorVersion, previousMajorVersion) == 1; |
| 808 | } |
| 809 | |
| 810 | // Show notification on upgrade. |
| 811 | async function showUpgradeMessageIfNecessary(onInstalledDetails) { |
no outgoing calls
no test coverage detected