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+
13const ipfs = window . IpfsApi ( )
24
35const DOM = {
@@ -11,7 +13,7 @@ const DOM = {
1113 publishResult : document . getElementById ( 'publish-result' ) ,
1214 resolveResult : document . getElementById ( 'resolve-result' ) ,
1315 publishGatewayLink : document . getElementById ( 'publish-gateway-link' ) ,
14- resolveGatewayLink : document . getElementById ( 'resolve-gateway-link' ) ,
16+ resolveGatewayLink : document . getElementById ( 'resolve-gateway-link' )
1517}
1618
1719const COLORS = {
@@ -63,7 +65,7 @@ const addAndPublish = (e) => {
6365 input . value = ''
6466 } )
6567 . catch ( err => {
66- showStatus ( `error adding ${ path } ` , COLORS . error )
68+ showStatus ( 'failed to add the data' , COLORS . error )
6769 console . error ( err )
6870 } )
6971}
@@ -76,7 +78,6 @@ const publish = (path) => {
7678 ipfs . name . publish ( path )
7779 . then ( res => {
7880 const name = res . Name
79-
8081 showStatus ( 'success!' , COLORS . success )
8182 DOM . publishResultsDiv . classList . remove ( 'hidden' )
8283 DOM . publishResult . innerText = `/ipns/${ name } `
File renamed without changes.
You can’t perform that action at this time.
0 commit comments