Bug 1283599 - Repair DevTools file watcher. r=tromey draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Thu, 30 Jun 2016 15:09:14 -0500
changeset 382888 f12f00916e160c60a1be62a77e722df494832ec9
parent 382446 a470d1809acea1d1b6139a962d137b436578317a
child 524330 c8f627a620d9a153f5d09b011a607690753541e3
push id21867
push userbmo:jryans@gmail.com
push dateThu, 30 Jun 2016 20:10:04 +0000
reviewerstromey
bugs1283599
milestone50.0a1
Bug 1283599 - Repair DevTools file watcher. r=tromey MozReview-Commit-ID: IRLxJ4ZJ5ti
devtools/client/shared/file-watcher.js
--- a/devtools/client/shared/file-watcher.js
+++ b/devtools/client/shared/file-watcher.js
@@ -10,17 +10,17 @@ function watchFiles(path, onFileChanged)
     "resource://devtools/client/shared/file-watcher-worker.js"
   );
 
   watchWorker.onmessage = event => {
     // We need to turn a local path back into a resource URI (or
     // chrome). This means that this system will only work when built
     // files are symlinked, so that these URIs actually read from
     // local sources. There might be a better way to do this.
-    const { newPath } = event.data;
+    const { path: newPath } = event.data;
     onFileChanged(newPath);
   };
 
   watchWorker.postMessage({
     path,
     fileRegex: /\.(js|css|svg|png)$/
   });
   return watchWorker;