Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Added support for decrement #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@
<body>
<div id="result">Loading...</div>

<script type="text/javascript" src="lib/orbitdb.min.js" charset="utf-8"></script>
<script type="text/javascript" src="lib/orbitdb.js" charset="utf-8"></script>
<script type="text/javascript" src="lib/ipfs-api.min.js" charset="utf-8"></script>

<script type="text/javascript">

const username = new Date().getTime()
const username = '' + new Date().getTime()
const channel = 'browser-counter-example'
const creatures = ['👻', '🐙', '🐷', '🐬', '🐞', '🐈', '🙉', '🐸', '🐓']

const elm = document.getElementById("result")
try {
const elm = document.getElementById("result")
const ipfs = IpfsApi('localhost', '5001')
const orbit = new OrbitDB(ipfs, username)
const counter = orbit.counter(channel + ".count")
Expand Down
Loading