Skip to content

Commit d02eb30

Browse files
committed
=>の修正
1 parent b733651 commit d02eb30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/bluetoothle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ var bluetoothle = {
210210
return String.fromCharCode.apply(null, new Uint16Array(bytes));
211211
},
212212
encodeUnicode: function(str) {
213-
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, (match, p1) => {
213+
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
214214
return String.fromCharCode(parseInt(p1, 16))
215215
}))
216216
},
217217
decodeUnicode: function(str) {
218218
// Going backwards: from byte stream, to percent-encoding, to original string.
219-
return decodeURIComponent(atob(str).split('').map((c) => {
219+
return decodeURIComponent(atob(str).split('').map(function(c) {
220220
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
221221
}).join(''));
222222
},

0 commit comments

Comments
 (0)