Every line of 'window location target' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
13 export function getWindow(target?: WindowNameOrId): Electron.BrowserWindow { 14 const { windowName, windowId } = target; 15 16 17 if (windowName != null) { 18 return getWindowByName(windowName); 19 } 20 21 if (windowId != null) { 22 return getWindowById(windowId); 23 } 24 25 if (windowName == null && windowId == null) { 26 return getCurrentWindow(); 27 } 28 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
231 function after_setWindowLocation(win, url) { 232 goog.dom.safe.setLocationHref(win.location, url); 233 }