From 15ddcbbebf9244eae9b8edf1c9b6dab164236823 Mon Sep 17 00:00:00 2001 From: Brandon-T Date: Mon, 6 Jan 2025 15:52:50 -0500 Subject: [PATCH] [iOS] - Fix readermode token missing in script message (#27131) Fix readermode sectoken missing in script message --- .../Sandboxed/MainFrame/AtDocumentStart/ReaderModeScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/brave-ios/Sources/Brave/Frontend/UserContent/UserScripts/Sandboxed/MainFrame/AtDocumentStart/ReaderModeScript.js b/ios/brave-ios/Sources/Brave/Frontend/UserContent/UserScripts/Sandboxed/MainFrame/AtDocumentStart/ReaderModeScript.js index 31f8c828d55c..70a1dfa978b9 100644 --- a/ios/brave-ios/Sources/Brave/Frontend/UserContent/UserScripts/Sandboxed/MainFrame/AtDocumentStart/ReaderModeScript.js +++ b/ios/brave-ios/Sources/Brave/Frontend/UserContent/UserScripts/Sandboxed/MainFrame/AtDocumentStart/ReaderModeScript.js @@ -35,7 +35,7 @@ function checkReadability() { } if(!isProbablyReaderable(document)) { - webkit.messageHandlers.readerModeMessageHandler.postMessage({Type: "ReaderModeStateChange", Value: "Unavailable"}); + webkit.messageHandlers.readerModeMessageHandler.postMessage({"securityToken": SECURITY_TOKEN, "data": {Type: "ReaderModeStateChange", Value: "Unavailable"}}); return; }