install.js: fix onclick after orphanCheck
This commit is contained in:
		
							parent
							
								
									3628564961
								
							
						
					
					
						commit
						36667dece1
					
				|  | @ -75,7 +75,7 @@ function sendEvent(type, detail = null) { | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| function onInstallClicked() { | function onInstallClicked() { | ||||||
|   if (!orphanCheck()) { |   if (!orphanCheck || !orphanCheck()) { | ||||||
|     return; |     return; | ||||||
|   } |   } | ||||||
|   getResource(getMeta('stylish-description')) |   getResource(getMeta('stylish-description')) | ||||||
|  | @ -85,7 +85,7 @@ function onInstallClicked() { | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| function onUpdateClicked() { | function onUpdateClicked() { | ||||||
|   if (!orphanCheck()) { |   if (!orphanCheck || !orphanCheck()) { | ||||||
|     return; |     return; | ||||||
|   } |   } | ||||||
|   chrome.runtime.sendMessage({ |   chrome.runtime.sendMessage({ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user