Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 2b498b9

Browse files
committed
fix linting
1 parent c527bf2 commit 2b498b9

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/browser-name/index.js renamed to examples/name-api/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const ipfs = window.IpfsApi()
24

35
const 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

1719
const 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.

0 commit comments

Comments
 (0)