Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing opening links in the default browser instead of the application #53

Ilian38f82c73f8fd
diff --git a/data/ext/viewerBrowser/extension.js b/data/ext/viewerBrowser/extension.js
index 4d15b99db..f24ace4a2 100644
--- a/data/ext/viewerBrowser/extension.js
+++ b/data/ext/viewerBrowser/extension.js
@@ -44,7 +44,7 @@ define(function(require, exports, module) {
$containerElement.append($('<iframe>', {
id: "iframeViewer",
"nwdisable": "",
- "nwfaketop": "",
+ "nwfaketop": ""
})
);
TSCORE.IO.loadTextFile(filePath);
@@ -53,7 +53,7 @@ define(function(require, exports, module) {
id: "iframeViewer",
src: filePathURI,
"nwdisable": "",
- "nwfaketop": "",
+ "nwfaketop": ""
})
);
}
@@ -77,6 +77,7 @@ define(function(require, exports, module) {
// disabling the links
$(viewerIframe.contentWindow.document).find( "a" ).bind('click', function(e){
e.preventDefault();
+ TSCORE.openLinkExternally($(this).attr("href"));
})
}
};