Closed srameh closed 5 years ago
I need load a different page using ajax from a Menu click. For example I have a FAQ menu item which has its own view. I want to load this on Ajax call. Something similar to openExternal function. How can this be done?
(function () { const shell = require('electron').shell const links = document.querySelectorAll('a[href]')
Array.prototype.forEach.call(links, function (link) { const url = link.getAttribute('href') if (url.indexOf('http') === 0) { link.addEventListener('click', function (e) { e.preventDefault() shell.openExternal(url) }) } })
})
Comes with the next Electron.NET update.
Is this feature available now? If so where can I find an example of it?
I need load a different page using ajax from a Menu click. For example I have a FAQ menu item which has its own view. I want to load this on Ajax call. Something similar to openExternal function. How can this be done?
(function () { const shell = require('electron').shell const links = document.querySelectorAll('a[href]')
})