Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove license check
  • Loading branch information
kofigumbs committed Aug 25, 2021
1 parent 770e846 commit 14f2d1b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 127 deletions.
6 changes: 3 additions & 3 deletions Multi.app/Contents/Info.plist
Expand Up @@ -9,9 +9,9 @@
<key>LSMinimumSystemVersion</key> <string>10.13</string>
<key>CFBundlePackageType</key> <string>APPL</string>
<key>CFBundleInfoDictionaryVersion</key> <string>6.0</string>
<key>CFBundleVersion</key> <string>2.1.3</string>
<key>CFBundleGetInfoString</key> <string>2.1.3</string>
<key>CFBundleShortVersionString</key> <string>2.1.3</string>
<key>CFBundleVersion</key> <string>2.1.4</string>
<key>CFBundleGetInfoString</key> <string>2.1.4</string>
<key>CFBundleShortVersionString</key> <string>2.1.4</string>
<key>NSPrincipalClass</key> <string>NSApplication</string>
<key>NSMainNibFile</key> <string>MainMenu</string>
</dict>
Expand Down
42 changes: 0 additions & 42 deletions Multi.app/Contents/Resources/license.html

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Expand Up @@ -36,6 +36,7 @@ I've also written a few blog posts that discuss some of the ideas behind Multi:

- Motivation: <https://kofi.sexy/blog/multi>
- Performance: <https://kofi.sexy/blog/slack-app-fewer-resources>
- Retrospective: <https://kofi.sexy/blog/multi-retrospective>


## Installation
Expand Down
6 changes: 1 addition & 5 deletions Sources/Runtime/Config.swift
Expand Up @@ -36,7 +36,7 @@ struct Config {

static let tabs: [Tab] = {
guard let schema = schema else { return [] }
var tabs = schema.tabs.map { tab in Tab(
return schema.tabs.map { tab in Tab(
title: tab.title,
url: tab.url,
customCss: tab.customCss ?? [],
Expand All @@ -45,10 +45,6 @@ struct Config {
basicAuthPassword: tab.basicAuthPassword ?? "",
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"
)}
if !tabs.isEmpty && !License.isValid {
tabs.insert(Tab(license: ()), at: 0)
}
return tabs
}()

private static let schema: Config.Schema? = {
Expand Down
59 changes: 0 additions & 59 deletions Sources/Runtime/License.swift

This file was deleted.

18 changes: 0 additions & 18 deletions Sources/Runtime/Tab.swift
Expand Up @@ -40,24 +40,6 @@ class Tab: NSObject {
webView.load(URLRequest(url: url))
}

init(license: ()) {
self.webView = WKWebView()
webView.setValue(false, forKey: "drawsBackground")
webView.configuration.userContentController.add(License.global, name: "license")
webView.enableDevelop()
if let url = Bundle.multi?.url(forResource: "license", withExtension: "html"),
let html = try? String(contentsOf: url) {
webView.loadHTMLString(html, baseURL: nil)
}

self.title = "Purchase a license"
self.basicAuthUser = ""
self.basicAuthPassword = ""
self.window = Browser.window(title: title, webView: webView)
super.init()
webView.navigationDelegate = self
}

@objc func view(_: Any? = nil) {
window.makeKeyAndOrderFront(nil)
window.makeFirstResponder(webView)
Expand Down

0 comments on commit 14f2d1b

Please sign in to comment.