@@ -46,6 +46,8 @@ define(function (require, exports, module) {
4646 _domainPath = [ _bracketsPath , _modulePath , _nodePath ] . join ( "/" ) ,
4747 _nodeDomain = new NodeDomain ( "fileWatcher" , _domainPath ) ;
4848
49+ var _isRunningOnWindowsXP = navigator . userAgent . indexOf ( "Windows NT 5." ) >= 0 ;
50+
4951 // If the connection closes, notify the FileSystem that watchers have gone offline.
5052 $ ( _nodeDomain . connection ) . on ( "close" , function ( event , promise ) {
5153 if ( _offlineCallback ) {
@@ -485,11 +487,15 @@ define(function (require, exports, module) {
485487 * cleared when the offlineCallback is called.
486488 *
487489 * @param {function(?string, FileSystemStats=) } changeCallback
488- * @param {function()= } callback
490+ * @param {function()= } offlineCallback
489491 */
490492 function initWatchers ( changeCallback , offlineCallback ) {
491493 _changeCallback = changeCallback ;
492494 _offlineCallback = offlineCallback ;
495+
496+ if ( _isRunningOnWindowsXP && _offlineCallback ) {
497+ _offlineCallback ( ) ;
498+ }
493499 }
494500
495501 /**
@@ -504,6 +510,10 @@ define(function (require, exports, module) {
504510 * @param {function(?string)= } callback
505511 */
506512 function watchPath ( path , callback ) {
513+ if ( _isRunningOnWindowsXP ) {
514+ callback ( FileSystemError . NOT_SUPPORTED ) ;
515+ return ;
516+ }
507517 appshell . fs . isNetworkDrive ( path , function ( err , isNetworkDrive ) {
508518 if ( err || isNetworkDrive ) {
509519 callback ( FileSystemError . UNKNOWN ) ;
@@ -563,8 +573,7 @@ define(function (require, exports, module) {
563573 *
564574 * @type {boolean }
565575 */
566- exports . recursiveWatch = ( appshell . platform === "mac" ||
567- ( appshell . platform === "win" && navigator . userAgent . indexOf ( "Windows NT 5." ) === - 1 ) ) ;
576+ exports . recursiveWatch = ( appshell . platform === "mac" || appshell . platform === "win" ) ;
568577
569578 /**
570579 * Indicates whether or not the filesystem should expect and normalize UNC
0 commit comments