Skip to content

Commit

Permalink
Merge pull request #321 from wakatime/main
Browse files Browse the repository at this point in the history
Release v5.25.0
  • Loading branch information
alanhamlett authored Oct 23, 2024
2 parents b712d69 + 0e3a21a commit 1400c8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions WakaTime/Helpers/MonitoringManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class MonitoringManager {
fatalError("\(monitoredApp.rawValue) should never use window title as entity")
case .canva:
fatalError("\(monitoredApp.rawValue) should never use window title as entity")
case .chrome:
case .chrome, .chromebeta, .chromecanary:
fatalError("\(monitoredApp.rawValue) should never use window title as entity")
case .figma:
guard
Expand Down Expand Up @@ -287,7 +287,7 @@ class MonitoringManager {
return .browsing
case .canva:
return .designing
case .chrome:
case .chrome, .chromebeta, .chromecanary:
return .browsing
case .figma:
return .designing
Expand Down Expand Up @@ -418,7 +418,7 @@ class MonitoringManager {
switch monitoredApp {
case .canva:
return "Image (svg)"
case .chrome:
case .chrome, .chromebeta, .chromecanary:
do {
guard let url = currentBrowserUrl(for: app, element) else { return nil }

Expand Down Expand Up @@ -464,7 +464,7 @@ class MonitoringManager {
case .brave:
let addressField = element.findAddressField()
address = addressField?.value
case .chrome:
case .chrome, .chromebeta, .chromecanary:
let addressField = element.findAddressField()
address = addressField?.value
case .firefox:
Expand Down
4 changes: 4 additions & 0 deletions WakaTime/Watchers/MonitoredApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ enum MonitoredApp: String, CaseIterable {
case brave = "com.brave.Browser"
case canva = "com.canva.CanvaDesktop"
case chrome = "com.google.Chrome"
case chromebeta = "com.google.Chrome.beta"
case chromecanary = "com.google.Chrome.canary"
case figma = "com.figma.Desktop"
case firefox = "org.mozilla.firefox"
case github = "com.github.GitHubClient"
Expand Down Expand Up @@ -101,6 +103,8 @@ enum MonitoredApp: String, CaseIterable {
MonitoredApp.arcbrowser.rawValue,
MonitoredApp.brave.rawValue,
MonitoredApp.chrome.rawValue,
MonitoredApp.chromebeta.rawValue,
MonitoredApp.chromecanary.rawValue,
MonitoredApp.firefox.rawValue,
MonitoredApp.safari.rawValue,
MonitoredApp.safaripreview.rawValue,
Expand Down

0 comments on commit 1400c8d

Please sign in to comment.