mirror of
https://github.com/danbee/scoreboard
synced 2025-03-04 08:59:11 +00:00
Remove compromised Pusher key.
This commit is contained in:
parent
92fb479b89
commit
d87153cae3
@ -1,4 +1,4 @@
|
||||
var pusher = new Pusher('57dc9c12b6e6fa97febb');
|
||||
var pusher = new Pusher(pusherKey);
|
||||
var channel = pusher.subscribe('scores');
|
||||
|
||||
resetScores = function () {
|
||||
|
||||
@ -5,20 +5,22 @@
|
||||
<title>Table Tennis</title>
|
||||
<link rel="stylesheet" href="/stylesheets/main.css">
|
||||
|
||||
<script>pusherKey = '<%= ENV['PUSHER_KEY'] %>';</script>
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/pusher/2.2.4/pusher.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<scores></scores>
|
||||
|
||||
<script src="/tags/scores.tag" type="riot/tag"></script>
|
||||
<script src="/javascripts/main.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/riot/2.0.15/riot+compiler.min.js"></script>
|
||||
|
||||
<div class="controls">
|
||||
<button id="reset">Reset</button>
|
||||
</div>
|
||||
|
||||
<script src="/tags/scores.tag" type="riot/tag"></script>
|
||||
<script src="/javascripts/main.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/riot/2.0.15/riot+compiler.min.js"></script>
|
||||
|
||||
<script>
|
||||
riot.mount('scores', { players: <%= scores.to_json %> })
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user