We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce62ac commit f9f87f5Copy full SHA for f9f87f5
WKWebViewJavascriptBridge/WKWebViewJavascriptBridgeBase.swift
@@ -109,9 +109,9 @@ public class WKWebViewJavascriptBridgeBase: NSObject {
109
messageJSON = messageJSON.replacingOccurrences(of: "\'", with: "\\\'")
110
messageJSON = messageJSON.replacingOccurrences(of: "\n", with: "\\n")
111
messageJSON = messageJSON.replacingOccurrences(of: "\r", with: "\\r")
112
-// messageJSON = messageJSON.replacingOccurrences(of: "\f", with: "\\f")
113
-// messageJSON = messageJSON.replacingOccurrences(of: "\u2028", with: "\\u2028")
114
-// messageJSON = messageJSON.replacingOccurrences(of: "\u2029", with: "\\u2029")
+ messageJSON = messageJSON.replacingOccurrences(of: "\u{000C}", with: "\\f")
+ messageJSON = messageJSON.replacingOccurrences(of: "\u{2028}", with: "\\u2028")
+ messageJSON = messageJSON.replacingOccurrences(of: "\u{2029}", with: "\\u2029")
115
116
let javascriptCommand = "WKWebViewJavascriptBridge._handleMessageFromiOS('\(messageJSON)');"
117
if Thread.current.isMainThread {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments