Commits

Anonymous committed cc851aa

made some naming changes

Comments (0)

Files changed (7)

Binary file removed.

BackgroundMsgSupport.js

+
+var backgroundMsgSupport = {
+	launchFileSelect : function(index, callback){
+		chrome.extension.sendRequest({key: 'launchFileSelect', index: index}, function(response){
+			callback(response);
+		});
+	},
+	getProjectTypes : function(callback){
+		chrome.extension.sendRequest({key : 'ProjectTypes'}, function(response){
+			callback(response);
+		});
+	},
+	checkResources : function(resources, callback){
+		chrome.extension.sendRequest({key : 'checkResources', resources: resources}, function(response){
+			callback(response);
+		});
+	},
+	checkResourceContent : function(url, content, callback){
+		chrome.extension.sendRequest({key : 'checkResourceContent', url: url, content:content}, function(response){
+			callback(response);
+		});
+	},
+	updateResource : function(url, content, callback){
+		chrome.extension.sendRequest({key : 'updateResource', url: url, content:content}, function(response){
+			callback(response);
+		});
+	},
+	pageChanged : function(callback){
+		chrome.extension.sendRequest({key: 'pageChanged'}, callback);
+	},
+	watchDirectory : function(fullPath, callback){
+		chrome.extension.sendRequest({key: 'watchDirectory', path : fullPath}, function(response){
+			callback(response);
+		});
+	}
+}
 			return;
 		}
 		var urls = this.project.urlsForPath(path)
-		if (urls){
+		if (urls && urls.length){
 			var port = chrome.tabs.connect(this.tabId, {name: 'fileChange'});
 			var ran = Math.round(Math.random()*10000000);
 			urls.asyncEach(function(url, done){
 	stopWatching : function(){
 		nativeFileSupport.stopWatching(this.tabId.toString());
 	}
-}
+}
 	<link rel="stylesheet" type="text/css" href="editorpanel.css" />
 
 	<script src="zepto1.0rc1.js"></script>
-	<script src="NativeFileSupportShim.js"></script>
+	<script src="BackgroundMsgSupport.js"></script>
 	<script src="Logger.js"></script>
 	<script src="RecentUpdateHandler.js"></script>
 	<script src="ResourceChecker.js"></script>
 		</p>
 	</div>
 </body>
-</html>
+</html>
   "description": "Plugin to allow editing of local files from Chrome developer tools",
   "version": "1",
   "devtools_page": "devtools.html",
-  "permissions" : ["http://*/"],
   "background_page": "background.html",
+  "permissions": ["http://*/", "https://*/"],
   "plugins": [
-    { "path": "NPAPIFileIOforChrome.plugin", "public": false }
+    { "path": "npNPAPIFileIOforChrome.so", "public": false }
   ]
-}
+}

nativeFileSupportShim.js

-
-var backgroundMsgSupport = {
-	launchFileSelect : function(index, callback){
-		chrome.extension.sendRequest({key: 'launchFileSelect', index: index}, function(response){
-			callback(response);
-		});
-	},
-	getProjectTypes : function(callback){
-		chrome.extension.sendRequest({key : 'ProjectTypes'}, function(response){
-			callback(response);
-		});
-	},
-	checkResources : function(resources, callback){
-		chrome.extension.sendRequest({key : 'checkResources', resources: resources}, function(response){
-			callback(response);
-		});
-	},
-	checkResourceContent : function(url, content, callback){
-		chrome.extension.sendRequest({key : 'checkResourceContent', url: url, content:content}, function(response){
-			callback(response);
-		});
-	},
-	updateResource : function(url, content, callback){
-		chrome.extension.sendRequest({key : 'updateResource', url: url, content:content}, function(response){
-			callback(response);
-		});
-	},
-	pageChanged : function(callback){
-		chrome.extension.sendRequest({key: 'pageChanged'}, callback);
-	},
-	watchDirectory : function(fullPath, callback){
-		chrome.extension.sendRequest({key: 'watchDirectory', path : fullPath}, function(response){
-			callback(response);
-		});
-	}
-}
Add a comment to this file

untitled text 13

Empty file removed.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.