app: ipfs loading improvements:

use IPFSClient from wabac.js
app: remove # from ipfs paths sent to app
preload interface made more extensible
This commit is contained in:
Ilya Kreymer
2020-12-09 22:46:16 -08:00
parent dfdebe9f69
commit cd40979625
7 changed files with 72 additions and 78 deletions
+3 -2
View File
@@ -47,7 +47,8 @@ const electronMainConfig = (env, argv) => {
plugins: [
new webpack.DefinePlugin({
__APP_FILE_SERVE_PREFIX__ : JSON.stringify(APP_FILE_SERVE_PREFIX),
__HELPER_PROXY__ : JSON.stringify(HELPER_PROXY)
__HELPER_PROXY__ : JSON.stringify(HELPER_PROXY),
__IPFS_CORE_URL__: JSON.stringify("")
}),
new webpack.BannerPlugin(BANNER_TEXT),
new CopyPlugin({
@@ -78,7 +79,7 @@ const electronPreloadConfig = (env, argv) => {
// this needs to be defined, but not actually used, as electron app uses
// ipfs-core from node
new webpack.DefinePlugin({
__IPFS_CORE_URL__: JSON.stringify(IPFS_CORE_URL)
__IPFS_CORE_URL__: JSON.stringify("")
}),
]
}