fix: feedback form messages got broken by github

This commit is contained in:
Louis Pontoise
2021-10-13 21:24:45 +09:00
committed by lwouis
parent b55c9f1f6c
commit 1539727da1
+6 -1
View File
@@ -1,7 +1,12 @@
import Cocoa
import Foundation
class FeedbackWindow: NSWindow {
static let token = Bundle.main.object(forInfoDictionaryKey: "FeedbackToken") as! String
static let token: String = {
// token is encoded to/from base64 to avoid github noticing it and revoking it
let base64Token = Bundle.main.object(forInfoDictionaryKey: "FeedbackToken") as! String
return String(data: Data(base64Encoded: base64Token)!, encoding: .utf8)!
}()
var body: TextArea!
var email: TextArea!
var sendButton: NSButton!