Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix in app browser opens if note contains iframe

ammarahm-ed1488fe472443
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index 36869c429..424ea5efd 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -118,7 +118,9 @@ export function post(type, value = null) {
}
export const _onShouldStartLoadWithRequest = async (request) => {
+
if (request.url.includes('https')) {
+ if (Platform.OS === "ios" && !request.isTopFrame) return;
openLinkInBrowser(request.url, appColors)
.catch((e) => {})
.then((r) => {});
@@ -127,6 +129,7 @@ export const _onShouldStartLoadWithRequest = async (request) => {
} else {
return true;
}
+
};
export function checkNote() {