forked from Steven/NginxInstaller
		
	Fix json
This commit is contained in:
		
							parent
							
								
									e4c4bbaad7
								
							
						
					
					
						commit
						62d9ca8b64
					
				
							
								
								
									
										2
									
								
								app.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								app.js
									
									
									
									
									
								
							@ -21,7 +21,7 @@ function generateQuickCmd() {
 | 
				
			|||||||
    fetch("https://paste.nevets.tech/api/", {
 | 
					    fetch("https://paste.nevets.tech/api/", {
 | 
				
			||||||
        method: "POST",
 | 
					        method: "POST",
 | 
				
			||||||
        headers: {'Content-Type': 'application/json'},
 | 
					        headers: {'Content-Type': 'application/json'},
 | 
				
			||||||
        body: "{'format':'url','content':'" + encodeURIComponent(buildCmd()) + "','expires':3600,'lexer':'bash'}",
 | 
					        body: "{\"format\":\"url\",\"content\":\"" + encodeURIComponent(buildCmd()) + "\",\"expires\":3600,\"lexer\":\"bash\"}",
 | 
				
			||||||
        mode: "cors"
 | 
					        mode: "cors"
 | 
				
			||||||
    }).then(res => res.json().then(json => {
 | 
					    }).then(res => res.json().then(json => {
 | 
				
			||||||
        document.getElementById("script").innerText = "curl -s " + json.url + "/raw | bash";
 | 
					        document.getElementById("script").innerText = "curl -s " + json.url + "/raw | bash";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user