~demindiro/werewolves

b85bf2559b727cf540da1fc2854cbc16979ef6f6 — David Hoppenbrouwers 1 year, 9 months ago 9894123
Fix code being undefined

A good reminder to always test your changes
1 files changed, 1 insertions(+), 0 deletions(-)

M templates/index.html
M templates/index.html => templates/index.html +1 -0
@@ 99,6 99,7 @@
			let data = { name: getField("index", "name").value }
			requestPost("{{ url_for('api.create_game') }}", data, function(e) {
				if (e.target.status === 201) {
					let code = JSON.parse(e.target.response)["code"]
					window.location.href = "{{ url_for('index', code='__code') }}"
							.replace("__code", code)
				}