mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-19 23:33:43 +00:00
Adding templates of IOS routers
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
// This file is required by the index.html file and will
|
||||
// be executed in the renderer process for that window.
|
||||
// All of the Node.js APIs are available in this process.
|
||||
|
||||
let shell = require('electron').shell
|
||||
document.addEventListener('click', function (event) {
|
||||
if (event.target.tagName === 'A' && event.target.href.startsWith('http')) {
|
||||
event.preventDefault()
|
||||
shell.openExternal(event.target.href)
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user