This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +4
-3
lines changed Expand file tree Collapse file tree 5 files changed +4
-3
lines changed File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
1
3
const ipfs = window . IpfsApi ( )
2
4
3
5
const DOM = {
@@ -11,7 +13,7 @@ const DOM = {
11
13
publishResult : document . getElementById ( 'publish-result' ) ,
12
14
resolveResult : document . getElementById ( 'resolve-result' ) ,
13
15
publishGatewayLink : document . getElementById ( 'publish-gateway-link' ) ,
14
- resolveGatewayLink : document . getElementById ( 'resolve-gateway-link' ) ,
16
+ resolveGatewayLink : document . getElementById ( 'resolve-gateway-link' )
15
17
}
16
18
17
19
const COLORS = {
@@ -63,7 +65,7 @@ const addAndPublish = (e) => {
63
65
input . value = ''
64
66
} )
65
67
. catch ( err => {
66
- showStatus ( `error adding ${ path } ` , COLORS . error )
68
+ showStatus ( 'failed to add the data' , COLORS . error )
67
69
console . error ( err )
68
70
} )
69
71
}
@@ -76,7 +78,6 @@ const publish = (path) => {
76
78
ipfs . name . publish ( path )
77
79
. then ( res => {
78
80
const name = res . Name
79
-
80
81
showStatus ( 'success!' , COLORS . success )
81
82
DOM . publishResultsDiv . classList . remove ( 'hidden' )
82
83
DOM . publishResult . innerText = `/ipns/${ name } `
File renamed without changes.
You can’t perform that action at this time.
0 commit comments