Skip to content

Commit

Permalink
Update analytics and rating
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed May 29, 2022
1 parent 9652523 commit 2bbf50d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = {
"New Authme version available. Starting the update...",
"Restart",
"Release notes",
"Enjoying Authme?",
"Enjoying Authme? Please give Authme a rating.",
"Rate on Microsoft Store",
"Star on GitHub",
"Provide feedback",
Expand Down
2 changes: 1 addition & 1 deletion languages/hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module.exports = {
"Új Authme verzió elérhető. Frissítés kezdése...",
"Újraindítás",
"Újdonságok",
"Tetszik az Authme?",
"Tetszik az Authme? Kérlek értékeld!",
"Értékelés a Microsoft Store-on",
"Csillagozás a GitHub-on",
"Visszajelzés",
Expand Down
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ process.on("uncaughtException", async (error) => {
dialog.showErrorBox("Authme", `Authme crashed while starting, crash report sent. \n\nPlease restart Authme, if you want report this open a GitHub Issue with a screenshot of this error (https://github.com/Levminer/authme/issues). \n\n${stack.clean(error.stack)}`)

try {
await axios.post("https://api.levminer.com/api/v1/authme/analytics/post", {
await axios.post("https://analytics.levminer.com/api/v1/authme/analytics/post", {
type: "load_crash",
version: app.getVersion(),
build: number,
Expand Down Expand Up @@ -416,7 +416,7 @@ const saveWindowPosition = () => {
const crashReport = async (crash_type, error) => {
if (dev === false) {
try {
await axios.post("https://api.levminer.com/api/v1/authme/analytics/post", {
await axios.post("https://analytics.levminer.com/api/v1/authme/analytics/post", {
type: crash_type,
version: authme_version,
build: build_number,
Expand Down Expand Up @@ -954,7 +954,7 @@ app.whenReady()
// Optional analytics
if (settings.settings.analytics === true && dev === false) {
try {
axios.post("https://api.levminer.com/api/v1/authme/analytics/post", { version: authme_version, build: build_number, os: os_version, lang: app.getLocaleCountryCode(), date: new Date() })
axios.post("https://analytics.levminer.com/api/v1/authme/analytics/post", { version: authme_version, build: build_number, os: os_version, lang: app.getLocaleCountryCode(), date: new Date() })
} catch (error) {
logger.error("Failed to post analytics", error)
}
Expand Down

0 comments on commit 2bbf50d

Please sign in to comment.