shortcuts_dashboard_navigation.js 278 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 /** * Helper function that finds the href of the fiven selector and updates the location. * * @param {String} selector */ export default (selector) => { const link = document.querySelector(selector).getAttribute('href'); if (link) { window.location = link; } };