voterunner

quick and dirty votes and discussions
git clone https://git.ce9e.org/voterunner.git

commit
7f15489da3fa5b93ebaf37747cfb9cb8dc59a428
parent
46f1233c57823c9af29de407ff4a98f916e59e59
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-11-19 10:27
use DELETE for testClear

Diffstat

M src/voterunner.js 5 +----

1 files changed, 1 insertions, 4 deletions


diff --git a/src/voterunner.js b/src/voterunner.js

@@ -160,9 +160,6 @@ document.addEventListener('DOMContentLoaded', function() {
  160   160 	};
  161   161 
  162   162 	window.testClear = function(done) {
  163    -1 		fetch(url, {
  164    -1 			method: 'PUT',
  165    -1 			body: JSON.stringify(['setNodes', null, []]),
  166    -1 		}).then(done);
   -1   163 		fetch(url, {method: 'DELETE'}).then(done);
  167   164 	};
  168   165 });