File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 - 9 A - F ] { 2 } ) / g, ( match , p1 ) => {
213+ return btoa ( encodeURIComponent ( str ) . replace ( / % ( [ 0 - 9 A - 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 } ,
You can’t perform that action at this time.
0 commit comments