mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Remove unused csp.js
This commit is contained in:
		
							parent
							
								
									5b9e1c13c0
								
							
						
					
					
						commit
						d2dcb69d38
					
				
					 1 changed files with 0 additions and 15 deletions
				
			
		
							
								
								
									
										15
									
								
								utils/csp.js
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								utils/csp.js
									
										
									
									
									
								
							|  | @ -1,15 +0,0 @@ | ||||||
| const { session } = require("electron"); |  | ||||||
| 
 |  | ||||||
| session.defaultSession.webRequest.onHeadersReceived.addListener( |  | ||||||
|   (h) => { |  | ||||||
|     h.responseHeaders.forEach((e, i) => { |  | ||||||
|       if (e.name.toLowerCase() === "content-security-policy") { |  | ||||||
|         e.value = ""; |  | ||||||
|       } |  | ||||||
|     }); |  | ||||||
|     return { responseHeaders: h.responseHeaders }; |  | ||||||
|   }, |  | ||||||
|   { urls: ["*://*.discord.com/*"] }, |  | ||||||
|   ["blocking", "responseHeaders"] |  | ||||||
| ); |  | ||||||
| //csp thingz
 |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue