mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
display a message if app has been updated
This commit is contained in:
parent
4717cbf7cd
commit
4d29f999fd
@ -122,7 +122,10 @@ class ComtyApp extends React.Component {
|
||||
window.app.message = antd.message
|
||||
window.app.isCapacitor = window.navigator.userAgent === "capacitor"
|
||||
|
||||
if (window.app.version !== window.localStorage.getItem("last_version")) {
|
||||
app.message.info(`Comty has been updated to version ${window.app.version}!`)
|
||||
window.localStorage.setItem("last_version", window.app.version)
|
||||
}
|
||||
|
||||
// check if electron library is available
|
||||
if (typeof window.electron !== "undefined") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user