Skip to content

Commit 14f2d1b

Browse files
committed
Remove license check
1 parent 770e846 commit 14f2d1b

File tree

6 files changed

+5
-127
lines changed

6 files changed

+5
-127
lines changed

Multi.app/Contents/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<key>LSMinimumSystemVersion</key> <string>10.13</string>
1010
<key>CFBundlePackageType</key> <string>APPL</string>
1111
<key>CFBundleInfoDictionaryVersion</key> <string>6.0</string>
12-
<key>CFBundleVersion</key> <string>2.1.3</string>
13-
<key>CFBundleGetInfoString</key> <string>2.1.3</string>
14-
<key>CFBundleShortVersionString</key> <string>2.1.3</string>
12+
<key>CFBundleVersion</key> <string>2.1.4</string>
13+
<key>CFBundleGetInfoString</key> <string>2.1.4</string>
14+
<key>CFBundleShortVersionString</key> <string>2.1.4</string>
1515
<key>NSPrincipalClass</key> <string>NSApplication</string>
1616
<key>NSMainNibFile</key> <string>MainMenu</string>
1717
</dict>

Multi.app/Contents/Resources/license.html

Lines changed: 0 additions & 42 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ I've also written a few blog posts that discuss some of the ideas behind Multi:
3636

3737
- Motivation: <https://kofi.sexy/blog/multi>
3838
- Performance: <https://kofi.sexy/blog/slack-app-fewer-resources>
39+
- Retrospective: <https://kofi.sexy/blog/multi-retrospective>
3940

4041

4142
## Installation

Sources/Runtime/Config.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct Config {
3636

3737
static let tabs: [Tab] = {
3838
guard let schema = schema else { return [] }
39-
var tabs = schema.tabs.map { tab in Tab(
39+
return schema.tabs.map { tab in Tab(
4040
title: tab.title,
4141
url: tab.url,
4242
customCss: tab.customCss ?? [],
@@ -45,10 +45,6 @@ struct Config {
4545
basicAuthPassword: tab.basicAuthPassword ?? "",
4646
userAgent: tab.userAgent ?? "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15"
4747
)}
48-
if !tabs.isEmpty && !License.isValid {
49-
tabs.insert(Tab(license: ()), at: 0)
50-
}
51-
return tabs
5248
}()
5349

5450
private static let schema: Config.Schema? = {

Sources/Runtime/License.swift

Lines changed: 0 additions & 59 deletions
This file was deleted.

Sources/Runtime/Tab.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,6 @@ class Tab: NSObject {
4040
webView.load(URLRequest(url: url))
4141
}
4242

43-
init(license: ()) {
44-
self.webView = WKWebView()
45-
webView.setValue(false, forKey: "drawsBackground")
46-
webView.configuration.userContentController.add(License.global, name: "license")
47-
webView.enableDevelop()
48-
if let url = Bundle.multi?.url(forResource: "license", withExtension: "html"),
49-
let html = try? String(contentsOf: url) {
50-
webView.loadHTMLString(html, baseURL: nil)
51-
}
52-
53-
self.title = "Purchase a license"
54-
self.basicAuthUser = ""
55-
self.basicAuthPassword = ""
56-
self.window = Browser.window(title: title, webView: webView)
57-
super.init()
58-
webView.navigationDelegate = self
59-
}
60-
6143
@objc func view(_: Any? = nil) {
6244
window.makeKeyAndOrderFront(nil)
6345
window.makeFirstResponder(webView)

0 commit comments

Comments
 (0)