mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix about:blank popups (Vencord QuickCss) (#256)
This commit is contained in:
		
							parent
							
								
									5d80d44fc8
								
							
						
					
					
						commit
						a3eea0b6ca
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -55,7 +55,7 @@ async function doAfterDefiningTheWindow() { | |||
|             vibe.applyEffect(mainWindow, "acrylic"); | ||||
|             vibe.setDarkMode(mainWindow); | ||||
|             mainWindow.show(); | ||||
|         });     | ||||
|         }); | ||||
|     } | ||||
|     var ignoreProtocolWarning = await getConfig("ignoreProtocolWarning"); | ||||
|     await checkIfConfigIsBroken(); | ||||
|  | @ -84,6 +84,9 @@ async function doAfterDefiningTheWindow() { | |||
|         }); | ||||
|     } | ||||
|     mainWindow.webContents.setWindowOpenHandler(({url}) => { | ||||
|         // Allow about:blank (used by Vencord QuickCss popup)
 | ||||
|         if (url === "about:blank") return { action: "allow" }; | ||||
| 
 | ||||
|         if (url.startsWith("https:" || url.startsWith("http:") || url.startsWith("mailto:"))) { | ||||
|             shell.openExternal(url); | ||||
|         } else { | ||||
|  | @ -137,7 +140,7 @@ async function doAfterDefiningTheWindow() { | |||
|                         favicon = nodeList[i].getAttribute("href"); | ||||
|                     } | ||||
|                 } | ||||
|                 return favicon;         | ||||
|                 return favicon; | ||||
|                 } | ||||
|                 getFavicon() | ||||
|             `);
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue