Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nedley committed Mar 8, 2021
1 parent cdc4f32 commit 9c9b788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ extension IPAWebViewController {
extension IPAWebViewController: WKScriptMessageHandler {
func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
guard let base64DataString = message.body as? String else { return }
guard base64DataString.starts(with: "data:application/octet-stream;base64,") else { return }
// Before decoding we need to drop this: "data:application/octet-stream;base64,"
guard let dataDecoded = Data(base64Encoded: String(base64DataString.dropFirst(37))) else { return }
let filename: String = Global.randomString(length: 15) + "-MEGA.ipa"
Expand Down
2 changes: 1 addition & 1 deletion appdb/Tabs/Featured/See All/SeeAll.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class SeeAll: LoadingTableView {
if Global.isIpad {
// Add 'Dismiss' button for iPad
let dismissButton = UIBarButtonItem(title: "Dismiss".localized(), style: .done, target: self, action: #selector(self.dismissAnimated))
self.navigationItem.rightBarButtonItems = [dismissButton]
self.navigationItem.leftBarButtonItems = [dismissButton]
}

// Refresh action
Expand Down

0 comments on commit 9c9b788

Please sign in to comment.