mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
Enable eslint indentation rule.
This is a fully automated change. The linter will fail because the extra indentation caused line-length errors. These won't be fixed automatically. They are fixed in a follow-up to make this one fully automated. Change-Id: I4d8cf9c998985add2bcd24a81c8d65495668c4f3
This commit is contained in:
@@ -35,8 +35,8 @@ goog.require('shaka.util.StringUtils');
|
||||
*/
|
||||
|
||||
shaka.util.Uint8ArrayUtils.toStandardBase64 = function(u8Arr) {
|
||||
const bytes = shaka.util.StringUtils.fromCharCode(u8Arr);
|
||||
return btoa(bytes);
|
||||
const bytes = shaka.util.StringUtils.fromCharCode(u8Arr);
|
||||
return btoa(bytes);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -51,7 +51,7 @@ shaka.util.Uint8ArrayUtils.toStandardBase64 = function(u8Arr) {
|
||||
shaka.util.Uint8ArrayUtils.toBase64 = function(arr, padding) {
|
||||
padding = (padding == undefined) ? true : padding;
|
||||
const base64 = shaka.util.Uint8ArrayUtils.toStandardBase64(arr)
|
||||
.replace(/\+/g, '-').replace(/\//g, '_');
|
||||
.replace(/\+/g, '-').replace(/\//g, '_');
|
||||
return padding ? base64 : base64.replace(/[=]*$/, '');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user