Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
25 changes: 0 additions & 25 deletions Django Files/DFMenu.js

This file was deleted.

11 changes: 0 additions & 11 deletions Django Files/Views/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ extension Bundle {

class AuthController: NSObject, WKNavigationDelegate, WKDownloadDelegate, UIScrollViewDelegate {
let tempTokenFileName: String = "token.txt"
var serverButtonJavascript: String = ""

var url: URL?

Expand All @@ -44,12 +43,6 @@ class AuthController: NSObject, WKNavigationDelegate, WKDownloadDelegate, UIScro

override init(){
super.init()
do{
serverButtonJavascript = String(data: try Data(contentsOf: URL(fileURLWithPath: Bundle.main.resourcePath! + "/DFMenu.js")), encoding: .utf8)!
}
catch{
serverButtonJavascript = ""
}
self.webView.customUserAgent = customUserAgent
}

Expand Down Expand Up @@ -103,10 +96,6 @@ class AuthController: NSObject, WKNavigationDelegate, WKDownloadDelegate, UIScro
reloadState = false
}
}
else if webView.url?.host() == url?.host(){
webView.evaluateJavaScript(serverButtonJavascript, completionHandler: { (jsonRaw: Any?, error: Error?) in
})
}
}

func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction) async -> WKNavigationActionPolicy{
Expand Down