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.
2 parents b9e3d99 + 54cc2ec commit 0c195c0Copy full SHA for 0c195c0
www/core/directives/iframe.js
@@ -127,8 +127,11 @@ angular.module('mm.core')
127
} else if (el.target == '_parent' || el.target == '_top' || el.target == '_blank') {
128
// Opening links with _parent, _top or _blank can break the app. We'll open it in InAppBrowser.
129
angular.element(el).on('click', function(e) {
130
- e.preventDefault();
131
- $mmUtil.openInApp(href);
+ // If the link's already prevented then we won't open it in InAppBrowser.
+ if (!e.defaultPrevented) {
132
+ e.preventDefault();
133
+ $mmUtil.openInApp(href);
134
+ }
135
});
136
}
137
0 commit comments