Skip to content

Commit

Permalink
Makes examples the same (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Jan 31, 2018
1 parent ea7a7f4 commit 06d653a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion www/authenticated-sea.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ <h1>Hello from authenticated with SEA</h1>
</div>
</div>
<script src="http://localhost:8000/gun.js"></script>
<script src="http://localhost:8000/gun/lib/cryptomodules.js"></script>
<script src="http://localhost:8000/gun/sea.js"></script>
<script src="authenticated-sea.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion www/authenticated.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<body>
<h1>Hello from authenticated</h1>
<form action="/" id="gunForm">
<input type="text" id="gunField">
<input type="text" id="gunField" placeholder="message">
</form>
<div>
<ul id="gunList"></ul>
Expand Down
2 changes: 1 addition & 1 deletion www/authenticated.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function addListener (element, type, func) {
function addLine (e) {
e.preventDefault()
const field = document.getElementById('gunField')
gun.get('lines').put({myVal: field.value})
gun.get('lines').set(field.value)
field.value = ''
}

Expand Down
3 changes: 1 addition & 2 deletions www/not-authenticated-sea.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
<body>
<h1>Hello from unauthenticated SEA</h1>
<form action="/" id="gunForm">
<input type="text" id="gunField">
<input type="text" id="gunField" placeholder="message">
</form>
<div>
<ul id="gunList"></ul>
</div>
<script src="http://localhost:8000/gun.js"></script>
<script src="http://localhost:8000/gun/lib/cryptomodules.js"></script>
<script src="http://localhost:8000/gun/sea.js"></script>
<script src="not-authenticated-sea.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion www/not-authenticated.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<body>
<h1>Hello from unauthenticated</h1>
<form action="/" id="gunForm">
<input type="text" id="gunField">
<input type="text" id="gunField" placeholder="message">
</form>
<div>
<ul id="gunList"></ul>
Expand Down
2 changes: 1 addition & 1 deletion www/not-authenticated.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function addListener (element, type, func) {
function addLine (e) {
e.preventDefault()
const field = document.getElementById('gunField')
gun.get('lines').put({myVal: field.value})
gun.get('lines').set(field.value)
field.value = ''
}

Expand Down

0 comments on commit 06d653a

Please sign in to comment.