这个流星网站浏览器网站使用包mrgalaxy:stripe,第一条指令是 把App.accessRule('https://*.stripe.com/*');
放在一个客户端文件mobile-config.js
。
这正是完成后,会导致浏览器发出错误:mrgalaxy:条纹应用程序未定义
Uncaught ReferenceError: App is not defined
我看了Meteor doc,但无法弄清楚。
任何想法如何解决这个问题?谢谢
这个流星网站浏览器网站使用包mrgalaxy:stripe,第一条指令是 把App.accessRule('https://*.stripe.com/*');
放在一个客户端文件mobile-config.js
。
这正是完成后,会导致浏览器发出错误:mrgalaxy:条纹应用程序未定义
Uncaught ReferenceError: App is not defined
我看了Meteor doc,但无法弄清楚。
任何想法如何解决这个问题?谢谢
你应该在你的应用程序的根目录中有该文件,而不是在你的client
文件夹中。
mrgalaxy:stripe documentation来自:
In order for Stripe.js to be loaded directly on iOS and Android a new rule needs to be created in your mobile-config.js located in the root of your project. Create the new file if it doesn't already exist and insert the line below.
这是必要的移动建立访问外部网址。如果您从Meteor构建移动应用程序,则需要在部署前向该文件添加其他配置信息。见https://docs.meteor.com/api/mobile-config.html