mirror of
				https://github.com/EndPwnArchive/bspwn-lambda.git
				synced 2024-08-14 23:57:04 +00:00 
			
		
		
		
	a
This commit is contained in:
		
							parent
							
								
									cc6f449cff
								
							
						
					
					
						commit
						11b28a1b09
					
				
					 2 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -47,7 +47,12 @@ exports.go = function() {
 | 
			
		|||
            details,
 | 
			
		||||
            callback
 | 
			
		||||
        ) {
 | 
			
		||||
            details.responseHeaders["content-security-policy"] = "*";
 | 
			
		||||
            details.responseHeaders["content-security-policy-report-only"] = "";
 | 
			
		||||
            details.responseHeaders["content-security-policy"] = "";
 | 
			
		||||
            delete details.responseHeaders[
 | 
			
		||||
                "content-security-policy-report-only"
 | 
			
		||||
            ];
 | 
			
		||||
 | 
			
		||||
            callback({ responseHeaders: details.responseHeaders });
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -229,11 +229,12 @@
 | 
			
		|||
 | 
			
		||||
                    // TODO: make this...not constant
 | 
			
		||||
                    const approot = 'https://xn--lmbda-2be.cf/';
 | 
			
		||||
                    const settings = require(data + "/settings.json");
 | 
			
		||||
 | 
			
		||||
                    // continue to discord
 | 
			
		||||
                    function load() {
 | 
			
		||||
                        var branch = DiscordNative.globals.releaseChannel;
 | 
			
		||||
                        electron.getCurrentWindow().loadURL('https://' + (branch != 'stable' && branch != 'development' ? branch + '.' : '') + 'discordapp.com/channels/@me');
 | 
			
		||||
                        electron.getCurrentWindow().loadURL(settings.WEBAPP_ENDPOINT || ('https://' + (branch != 'stable' && branch != 'development' ? branch + '.' : '') + 'discordapp.com/channels/@me'));
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    // make the plugins and styles dirs if they dont exist
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue