Commit 9429dd07ea740e2d002c966affa5cdaccc0d73f3
Switch to using unicode escapes
Bradley Donahue committed on 2/4/2017, 4:06:19 PMParent: 0c056b3b97a2efd2fceb281c3d99ac1fe864be47
Files changed
modules_basic/like.js | changed |
modules_extra/raw.js | changed |
modules_basic/like.js | |||
---|---|---|---|
@@ -42,10 +42,10 @@ | |||
42 | 42 … | ||
43 | 43 … | if (votes.length === 0) return | |
44 | 44 … | ||
45 | 45 … | digs.textContent = votes.length > 4 | |
46 | - ? votes.length + ' 🗸' | ||
47 | - : Array(votes.length).fill('🗸').join('') | ||
46 … | + ? votes.length + ' \u2713' | ||
47 … | + : Array(votes.length).fill('\u2713').join('') | ||
48 | 48 … | ||
49 | 49 … | pull( | |
50 | 50 … | pull.values(votes.map(vote => api.avatar_name(vote.source))), | |
51 | 51 … | pull.collect((err, ary) => { |
modules_extra/raw.js | ||
---|---|---|
@@ -7,9 +7,9 @@ | ||
7 | 7 … | return function (msg) { |
8 | 8 … | var tmp = h('div') |
9 | 9 … | var el |
10 | 10 … | var pre |
11 | - const symbol = '⛭' | |
11 … | + const symbol = '\u2699' | |
12 | 12 … | var clicked = false |
13 | 13 … | |
14 | 14 … | return h('a', { |
15 | 15 … | title: 'View raw data', |
@@ -78,6 +78,4 @@ | ||
78 | 78 … | arr[i] = h('a', {href: '#' + arr[i]}, arr[i]) |
79 | 79 … | } |
80 | 80 … | return arr |
81 | 81 … | } |
82 | - | |
83 | - |
Built with git-ssb-web