Skip to content

Commit

Permalink
Merge branch 'release/v0.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienC committed Jun 14, 2019
2 parents c29d019 + f9dc400 commit 6a291b7
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
4 changes: 0 additions & 4 deletions assets/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
"description": "Can't set status because user token is not set."
},

"apiLimitation": {
"message": "The Discord API doesn't allow you to see your status changes in Discord, only other users can.",
"description": "Explanation of the discord API limitation who prevents showing self status changes."
},
"tokens": {
"message": "Discord accounts used",
"description": "User tokens"
Expand Down
3 changes: 0 additions & 3 deletions assets/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
"message": "Le statut ne peut être changé, le token utilisateur n'est pas renseigné."
},

"apiLimitation": {
"message": "L'API Discord ne permet pas de voir vos propres changements de statut dans Discord, seuls les autres utilisateurs les verront."
},
"tokens": {
"message": "Comptes Discord utilisés"
},
Expand Down
2 changes: 1 addition & 1 deletion assets/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"version": "0.1.3",
"version": "0.1.4",

"default_locale": "en",
"icons": {
Expand Down
2 changes: 0 additions & 2 deletions assets/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
<main class="mdl-layout__content">
<div class="page-content">

<h6 class="mdl-color-text--accent">__MSG_apiLimitation__</h6>

<h4>__MSG_tokens__</h4>
<p>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-deezer-chrome",
"version": "0.1.3",
"version": "0.1.4",
"description": "This Chrome extension allows the user to display Deezer's current playing song in Discord status.",
"main": "src/background.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/DiscordGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class DiscordGateway {
/* Send heartbeat */
_sendHeartbeat() {
if (this._ws && this._ws.readyState === WebSocket.OPEN) {
this._send(getOpHeartbeatPayload());
this._send(this._getOpHeartbeatPayload());
}
}
_messageHandler(data) {
Expand All @@ -73,7 +73,7 @@ export default class DiscordGateway {
break;
case 10: /* hello */
clearInterval(this._heartbeatTimer);
this._heartbeatTimer = setInterval(this._sendHeartbeat, data.d.heartbeat_interval)
this._heartbeatTimer = setInterval(this._sendHeartbeat.bind(this), data.d.heartbeat_interval)
if (config.loggingEnabled) {
console.log(`Token ${this._token}: received hello message: ${JSON.stringify(data, null, 4)}`);
}
Expand Down

0 comments on commit 6a291b7

Please sign in to comment.