Commits

unknown  committed 22f2d98

Added code to handle the case of static web resources having query strings

  • Participants
  • Parent commits 09f1bcb

Comments (0)

Files changed (1)

File ChromeExtensionProject.js

 }
 
 UrlToDirectoryMappedProject.prototype = {
-	filePathForUrl : function(url){
+	filePathForUrl : function(rawUrl){
+		// strip any query strings
+		var url = rawUrl.split("?")[0];
+		
 		var routes = this.routes;
 		for (var i = 0; i < routes.length; i++){
 			if (url.indexOf(routes[i].from) == 0){
 				if (this.isWin){
 					path = path.replace(/\//g, '\\');
 				}
-				this.projectUrls[path] = url;
+				this.projectUrls[path] = rawUrl;
 				return path;
 			}
 		}