Commits

unknown  committed 84d2977

Windows specific fixes. Dont prepend a front slash onto Windows paths. The embed tag on the background page needs a size so the dialog code works

  • Participants
  • Parent commits b668d6d

Comments (0)

Files changed (2)

File FauxFilesystem.js

 				path = parent.name + (path.charAt(0) == '/' ? '' : '/') + path;
 				parent = parent.parent;
 			}
+			if (navigator.platform == 'Win32' && path.charAt(0) == '/'){
+				path = path.substring(1);
+			}
 			return path;
 		},
 		remove : function(success, error){

File background.html

 		<script src="zepto1.0rc1.js"></script>
 		<script src="RecentUpdateHandler.js"></script>
 		<script src="FileWatcher.js"></script>
+
 		<script src="ProjectManager.js"></script>
-    	<embed type="application/x-npapifileioforchrome" id="pluginId" style="position:absolute; top:0px;left:-10000px;width:0px;height:0px;">
+    	<embed type="application/x-npapifileioforchrome" id="pluginId" style="position:absolute; top:0px;left:-10000px;width:5px;height:5px;">
+
 		<script>
 		  window.nativeFileSupport = document.getElementById("pluginId");
 		</script>