mirror of
https://github.com/S2-/gitlit
synced 2025-08-02 20:30:05 +02:00
add homepage link
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
const remote = require('electron').remote;
|
||||
const electronFind = require('electron-find');
|
||||
const dialog = remote.require('electron').dialog;
|
||||
const shell = require('electron').shell;
|
||||
|
||||
let findInPage = new electronFind.FindInPage(remote.getCurrentWebContents());
|
||||
|
||||
@@ -144,6 +145,11 @@
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', 'a[href^="http"]', function(event) {
|
||||
event.preventDefault();
|
||||
shell.openExternal(this.href);
|
||||
});
|
||||
|
||||
$(document).on('keypress', (ev) => {
|
||||
//ctrl + f
|
||||
if (ev.ctrlKey && ev.charCode == 6) {
|
||||
|
Reference in New Issue
Block a user