简体   繁体   English

Rails应用中的Javascript错误(本地运行)

[英]Javascript error in rails app (locally run)

I am trying to move a development environment from production to my local machine (Ubuntu), and when I get the code up and running on my box, the site works in rails but I get this JS error: 我正在尝试将开发环境从生产环境移到本地计算机(Ubuntu),当我在框上启动并运行代码时,该站点可以在Rails中运行,但出现此JS错误:

Permission denied for http://ad.doubleclick.net to call method Location.toString on http://localhost:3000 . 拒绝http://ad.doubleclick.net调用http:// localhost:3000上的Location.toString方法。

Line 0 0行

Do you have any idea how to fix JS problems, or should I disable the ads in development? 您是否知道如何解决JS问题,还是应该停用开发中的广告?

This is most likely an error that you can ignore. 这很可能是您可以忽略的错误。 Its probably contained to an iframe created by the advertisement module. 它可能包含在广告模块创建的iframe中。

I'm pretty sure that error occurs on the production version too, unless the production version is actually hosted at ad.doubleclick.net , which I guess its not :) 我非常确定在生产版本上也会发生错误,除非生产版本实际上托管在ad.doubleclick.net ,但我猜不是这样:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在IE中本地运行JS应用 - run JS app locally in IE Javascript 错误; 在本地尝试时 - Javascript error ; while trying locally Rails:'如果在本地运行'条件javascript标记包括 - Rails: 'if running locally' conditional javascript tag include Rails:CSS / Javascript在本地运行良好,但在Heroku上却无法运行 - Rails : CSS/Javascript working fine locally but not on Heroku 如何从 Rails 7 运行单文件 javascript 音板应用程序 - How to run a single-file javascript soundboard app from Rails 7 对第三方网站的JavaScript / jQuery引用在本地运行,而不是在godaddy运行站点上托管时出现(404错误) - JavaScript/jQuery reference to a third party website works locally, not when hosted on godaddy run site (404 error) 为什么这个javascript在本地运行但不在Web服务器上运行? - Why does this javascript run locally but not on a web server? Java混淆器在本地运行,每个编译 - Javascript Obfuscator to run locally which each compile 在Android应用程序中本地存储Javascript,这可能吗? - Storing Javascript locally in Android app, is this possible? 集成Stripe API时Rails应用中的Javascript错误 - Javascript error in rails app when integrating Stripe API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM