Skip to content

Commit

Permalink
Fix syntax (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenrikoverland committed Apr 10, 2019
1 parent d367e7f commit 9665a5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/app/i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2019-04-09T19:49:32.869Z\n"
"PO-Revision-Date: 2019-04-09T19:49:32.869Z\n"
"POT-Creation-Date: 2019-04-10T07:37:19.391Z\n"
"PO-Revision-Date: 2019-04-10T07:37:19.391Z\n"

msgid "Rename successful"
msgstr ""
Expand Down Expand Up @@ -130,7 +130,7 @@ msgstr ""
msgid "Move to"
msgstr ""

msgid "Dual-axis"
msgid "Manage axes"
msgstr ""

msgid "None selected"
Expand Down
6 changes: 3 additions & 3 deletions packages/app/src/modules/colorGenerator.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function hex(c) {
var s = '0123456789abcdef';
var i = parseInt(c);
if (i == 0 || isNaN(c)) {
var i = parseInt(c, 10);
if (i === 0 || isNaN(c)) {
return '00';
}
i = Math.round(Math.min(Math.max(0, i), 255));
Expand All @@ -15,7 +15,7 @@ function convertToHex(rgb) {

/* Remove '#' in color hex string */
function trim(s) {
return s.charAt(0) == '#' ? s.substring(1, 7) : s;
return s.charAt(0) === '#' ? s.substring(1, 7) : s;
}

/* Convert a hex string to an RGB triplet */
Expand Down

0 comments on commit 9665a5a

Please sign in to comment.