将Cloud Firestore库添加到Chrome扩展程序content_scripts [英] Add Cloud firestore library to chrome extension, content_scripts
问题描述
是否可以将Cloud Firestore库添加到content_scripts?
我需要添加firebase-app.js和firebase-firestore.js
Is there any way to add cloud firestore library to content_scripts? I need to add firebase-app.js and firebase-firestore.js
推荐答案
我成功了,我只需从以下位置下载文件:
https://github.com/firebase/firebase-bower
,然后我不得不将firebase-firestore.js转换为utc8
还将其添加到manifest.json: content_security_policy: script-src'self' https://www.gstatic.com/ https://*.firebaseio.com https://www.googleapis.com; object-src'self',
I made it work, I just had to download the files from:
https://github.com/firebase/firebase-bower
then I had to convert firebase-firestore.js to utc8
also added this to my manifest.json:"content_security_policy":"script-src 'self' https://www.gstatic.com/ https://*.firebaseio.com https://www.googleapis.com; object-src 'self'",
这篇关于将Cloud Firestore库添加到Chrome扩展程序content_scripts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!