···9494 Return.singleton m
9595 )
9696 |> andThen
9797- (\m ->
9898- if m.isUpgrading then
9999- """
100100- Thank you for using Diffuse V1!
101101- If you want to import your old data,
102102- please go to the [import page](#/settings/data).
103103- """
104104- |> Notifications.stickySuccess
105105- |> Common.showNotificationWithModel m
106106-107107- else
108108- Return.singleton m
109109- )
110110- |> andThen
11197 Sources.addSourcesFromUrl
1129811399
-16
src/Javascript/index.ts
···119119 isInstallingServiceWorker: !!reg.installing,
120120 isOnline: navigator.onLine,
121121 isTauri: isNativeWrapper,
122122- upgrade: viableForUpgrade(),
123122 version,
124123 viewport: {
125124 height: window.innerHeight,
···969968 app.ports.indicateTouchDevice.send(null)
970969 window.removeEventListener("touchstart", onFirstTouch, false)
971970}, false)
972972-973973-974974-975975-// Upgrade
976976-// -------
977977-978978-function viableForUpgrade() {
979979- // Was the user using an old version of the app?
980980- // V1
981981- const viable_v1 = !!localStorage.getItem("additional-userdata")
982982- if (viable_v1) localStorage.removeItem("additional-userdata")
983983-984984- // The end
985985- return viable_v1
986986-}