Răsfoiți Sursa

fixed installing scripts from local files

Gerald 12 ani în urmă
părinte
comite
a662bfca89
3 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 3 3
      _locales/en/messages.json
  2. 1 1
      confirm.html
  3. 1 1
      confirm.js

+ 3 - 3
_locales/en/messages.json

@@ -4,8 +4,8 @@
 		"description": "name of this extension"
 	}, 
 	"extAuthor": {
-		"description": "Designed by <a href=mailto:[email protected]>Gerald</a>", 
-		"message": ""
+		"message": "Designed by <a href=mailto:[email protected]>Gerald</a>", 
+		"description": ""
 	},
 	"extTranslator": {
 		"message": "Gerald <[email protected]>", 
@@ -56,7 +56,7 @@
 		"description": ""
 	}, 
 	"labelInstall": {
-		"message": "Install script...", 
+		"message": "Installing script", 
 		"description": ""
 	}, 
 	"buttonConfirmInstall": {

+ 1 - 1
confirm.html

@@ -22,7 +22,7 @@
 			</tr>
 			<tr><td colspan=2 id=msg></td></tr>
 			<tr class=expand><td colspan=2 class=expandr><textarea id=eCode class=expanda></textarea></td></tr>
-			<tr><td colspan=2 class=center><span class=i18n>anchorSupportPage</span> - <span class=i18n>labelAuthor</span> - 2013</td></tr>
+			<tr><td colspan=2 class=center><span class=i18n>anchorSupportPage</span> - <span class=i18n>extAuthor</span> - 2013</td></tr>
 		</table>
 	</body>
 </html>

+ 1 - 1
confirm.js

@@ -53,7 +53,7 @@ chrome.runtime.onMessage.addListener(function(req,src,callback) {
 		var x=new XMLHttpRequest();
 		x.open('GET',data.url,true);
 		x.onloadend=function(){
-			if(this.status==200&&this.responseText) checkScript(this.responseText);
+			if((!this.status||this.status==200)&&this.responseText) checkScript(this.responseText);
 			else error();
 		};
 		x.send();