function processUrl(url: string): void {
    if (!global.mainWindow) return;
    console.log("Handling link: ", url);
    global.mainWindow.loadURL(url.replace(PROTOCOL, "vector://"));
}
Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.