2017-09-22 88 views
0

這個流星網站瀏覽器網站使用包mrgalaxy:stripe,第一條指令是 把App.accessRule('https://*.stripe.com/*');放在一個客戶端文件mobile-config.js
這正是完成後,會導致瀏覽器發出錯誤:mrgalaxy:條紋應用程序未定義

Uncaught ReferenceError: App is not defined

我看了Meteor doc,但無法弄清楚。

任何想法如何解決這個問題?謝謝

回答

0

你應該在你的應用程序的根目錄中有該文件,而不是在你的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

相關問題