LiveReload不能正常工作Guard(Firefox) [英] LiveReload not working Guard (Firefox)

查看:294
本文介绍了LiveReload不能正常工作Guard(Firefox)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个有趣的问题,我有LiveReload在Chrome中工作,所以我知道它的安装是正确的,但我不能让我的生活得到它在火狐9.0.1。我激活了我的网站上的图标,它只是保持红色,在我的警卫终端显示以下症状。

 浏览器已连接。 
浏览器URL:{command:hello,protocols:[http://livereload.com/protocols/connection-check-1]}
浏览器断开。

这里是我的保护文件。

  guard'livereload'do 
watch(%r {app /.+\。(erb | haml)})
watch(%r {app / helpers /.+ \.rb})
watch(%r {(public / | app / assets)。+ \。(css | js | html)})
watch(%r {(app / assets /.+\.css)\\.[[ac]ss}){| m | m [1]}
watch(%r {(app / assets /.+\.js)\.coffee}){| m | m [1]}
watch(%r {config / locales /.+ \.yml})
end

我对这个问题做了一些研究,我发现所有人都在报告问题,然后报告说刚刚清理完毕,没有任何开发人员的解释。有趣的!

解决方案

最新的Firefox似乎无法注入chrome://网址到主机页面取消了相应资源的额外contentaccesible的清单属性。



我已经添加并提交了一个拉请求:https://github.com/livereload/livereload-extensions/pull/8



你可以在这里获取固定的插件包: https://github.com/downloads/siasia/livereload-extensions/LiveReload-2.0 .9.xpi


I'm having a fun issue, I have LiveReload working in Chrome, so I know it's installed right, but I can't for the life of me get it going on Firefox 9.0.1. I activate the icon on my site and it just stays red, with the following symptom showing in my guard terminal.

Browser connected.
Browser URL: {"command":"hello","protocols":["http://livereload.com/protocols/connection-check-1"]}
Browser disconnected.

Here's my guardfile.

guard 'livereload' do
  watch(%r{app/.+\.(erb|haml)})
  watch(%r{app/helpers/.+\.rb})
  watch(%r{(public/|app/assets).+\.(css|js|html)})
  watch(%r{(app/assets/.+\.css)\.s[ac]ss}) { |m| m[1] }
  watch(%r{(app/assets/.+\.js)\.coffee}) { |m| m[1] }
  watch(%r{config/locales/.+\.yml})
end

I did some research on the subject and all I can find are people reporting issues and then reporting back that it just cleared up, without any explanation from the developers. Fun!

解决方案

Latest Firefox seems to be unable to inject chrome:// urls into the host page unlees the corresponding resource has additional "contentaccesible" manifest attribute.

I've added that and submitted a pull request: https://github.com/livereload/livereload-extensions/pull/8

You can grab the fixed plugin package here: https://github.com/downloads/siasia/livereload-extensions/LiveReload-2.0.9.xpi

这篇关于LiveReload不能正常工作Guard(Firefox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆