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');
|
var channel = pusher.subscribe('scores');
|
||||||
|
|
||||||
resetScores = function () {
|
resetScores = function () {
|
||||||
|
|||||||
@ -5,20 +5,22 @@
|
|||||||
<title>Table Tennis</title>
|
<title>Table Tennis</title>
|
||||||
<link rel="stylesheet" href="/stylesheets/main.css">
|
<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/pusher/2.2.4/pusher.min.js"></script>
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<scores></scores>
|
<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">
|
<div class="controls">
|
||||||
<button id="reset">Reset</button>
|
<button id="reset">Reset</button>
|
||||||
</div>
|
</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>
|
<script>
|
||||||
riot.mount('scores', { players: <%= scores.to_json %> })
|
riot.mount('scores', { players: <%= scores.to_json %> })
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user