Skip to content

Commit

Permalink
Update MiniAppViewHandler.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rleojoseph committed Oct 16, 2023
1 parent d0e6c10 commit 51a55b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/Classes/core/View/MiniAppViewHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import WebKit

// swiftlint:disable file_length function_body_length
// swiftlint:disable file_length

// MARK: - MiniAppViewHandler
class MiniAppViewHandler: NSObject {

Expand Down Expand Up @@ -936,12 +936,11 @@ extension MiniAppViewHandler {
self.didReceiveEvent(MiniAppEvent.miniappReceiveJsonString, message: jsonString ?? "")
}
}
// swiftlint:enable file_length function_body_length

extension String {
func base64Encoded() -> String? {
guard let data = data(using: .nonLossyASCII) else { return "" }
return data.base64EncodedString()
}
}
// swiftlint:enable file_length
// swiftlint:enable file_length function_body_length

0 comments on commit 51a55b5

Please sign in to comment.