{"action":"created","issue":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/830","labels_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/830/comments","events_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/830/events","html_url":"https://github.com/BrowserSync/browser-sync/issues/830","id":107361409,"number":830,"title":"browser-sync ghost-mode only?","user":{"login":"serapath","id":1771897,"avatar_url":"https://avatars.githubusercontent.com/u/1771897?v=3","gravatar_id":"","url":"https://api.github.com/users/serapath","html_url":"https://github.com/serapath","followers_url":"https://api.github.com/users/serapath/followers","following_url":"https://api.github.com/users/serapath/following{/other_user}","gists_url":"https://api.github.com/users/serapath/gists{/gist_id}","starred_url":"https://api.github.com/users/serapath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serapath/subscriptions","organizations_url":"https://api.github.com/users/serapath/orgs","repos_url":"https://api.github.com/users/serapath/repos","events_url":"https://api.github.com/users/serapath/events{/privacy}","received_events_url":"https://api.github.com/users/serapath/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-19T23:23:05Z","updated_at":"2015-09-22T07:36:03Z","closed_at":"2015-09-22T07:36:03Z","body":"I'm using `browserify` and `watchify` in combination with `browserify-hmr` to hot reload my project live during development. Changes get streamed via web sockets and it even works when i open my project through a \"double-clicked\" `index.html`\r\n\r\nI imagine it should/might be possible to use browser-sync to synchronize navigation across devices/browsers, but when adding:\r\n\r\n```html\r\n<script type='text/javascript' id=\"__bs_script__\">//<![CDATA[\r\n\tdocument.write(\"<script async src='http://HOST:3000/browser-sync/browser-sync-client.2.9.3.js'><\\/script>\".replace(\"HOST\", location.hostname));\r\n//]]></script>\r\n```\r\nto my index.html file, it doesn't work, because `location.hostname` makes no sense - and i can't do a lot about it when using with a `cordova` built mobile app running on my usb connected device or an android emulator.\r\n\r\nI could generate the `script tag` and add automatically add my current `wifi ip` instead, but it seems the downloaded `browser-sync-client.2.9.3.js` is using `location.hostname` internally which breaks everything. Maybe it could use my `wifi ip` or whatever parameter i append to the script src instead?"},"comment":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/comments/142202883","html_url":"https://github.com/BrowserSync/browser-sync/issues/830#issuecomment-142202883","issue_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/830","id":142202883,"user":{"login":"shakyShane","id":1643522,"avatar_url":"https://avatars.githubusercontent.com/u/1643522?v=3","gravatar_id":"","url":"https://api.github.com/users/shakyShane","html_url":"https://github.com/shakyShane","followers_url":"https://api.github.com/users/shakyShane/followers","following_url":"https://api.github.com/users/shakyShane/following{/other_user}","gists_url":"https://api.github.com/users/shakyShane/gists{/gist_id}","starred_url":"https://api.github.com/users/shakyShane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakyShane/subscriptions","organizations_url":"https://api.github.com/users/shakyShane/orgs","repos_url":"https://api.github.com/users/shakyShane/repos","events_url":"https://api.github.com/users/shakyShane/events{/privacy}","received_events_url":"https://api.github.com/users/shakyShane/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T07:36:03Z","updated_at":"2015-09-22T07:36:03Z","body":"sorry for the delay. This feature already exists.\r\n\r\n```js\r\nscriptPath: function (path, port, options) {\r\n    return 'shane';\r\n}\r\n```\r\n\r\nhttp://www.browsersync.io/docs/options/#option-scriptPath"}}