Skip to content

Commit

Permalink
NSApplicationCrashOnExceptions for Crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Jan 18, 2019
1 parent 8b91c3b commit e04faf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OSX/GureumAppDelegate.swift
Expand Up @@ -41,8 +41,9 @@ class GureumAppDelegate: NSObject, NSApplicationDelegate, GureumApplicationDeleg
let notificationCenterDelegate = NotificationCenterDelegate()

func applicationDidFinishLaunching(_ notification: Notification) {
NSUserNotificationCenter.default.delegate = notificationCenterDelegate
UserDefaults.standard.register(defaults: ["NSApplicationCrashOnExceptions": true])

NSUserNotificationCenter.default.delegate = notificationCenterDelegate
let notificationCenter = NSUserNotificationCenter.default
#if DEBUG
let notification = NSUserNotification()
Expand Down

0 comments on commit e04faf8

Please sign in to comment.