Skip to content

Commit

Permalink
switch to default print width
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Dec 24, 2020
1 parent 9004bf6 commit 729a36d
Show file tree
Hide file tree
Showing 143 changed files with 8,259 additions and 1,953 deletions.
5 changes: 4 additions & 1 deletion .esdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"destination": "./api-docs",
"plugins": [
{ "name": "@itsjamie/esdoc-standard-plugin" },
{ "name": "@itsjamie/esdoc-typescript-plugin", "option": { "enable": true } },
{
"name": "@itsjamie/esdoc-typescript-plugin",
"option": { "enable": true }
},
{
"name": "@itsjamie/esdoc-ecmascript-proposal-plugin",
"option": {
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ module.exports = {
2,
{
name: 'window',
message: 'Use `self` instead of `window` to access the global context everywhere (including workers).',
message:
'Use `self` instead of `window` to access the global context everywhere (including workers).',
},
{
name: 'SourceBuffer',
Expand Down
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"singleQuote": true,
"printWidth": 180
"singleQuote": true
}
21 changes: 17 additions & 4 deletions demo/benchmark.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@
<script>
function parseQuery(queryString) {
var query = {};
var pairs = (queryString[0] === '?' ? queryString.substr(1) : queryString).split('&');
var pairs = (queryString[0] === '?'
? queryString.substr(1)
: queryString
).split('&');
for (var i = 0; i < pairs.length; i++) {
var pair = pairs[i].split('=');
query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || '');
query[decodeURIComponent(pair[0])] = decodeURIComponent(
pair[1] || ''
);
}
return query;
}
Expand All @@ -24,7 +29,9 @@
return query.hasOwnProperty(name) ? query[name] : undefined;
}

var stream = getParameterByName('stream') || 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8';
var stream =
getParameterByName('stream') ||
'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8';
</script>
<script>
if (Hls.isSupported()) {
Expand All @@ -45,7 +52,13 @@
var el = document.getElementById('update');
function foo() {
i++;
el.innerHTML = 'animation:' + i + ',decoded:' + video.webkitDecodedFrameCount + ',dropped:' + video.webkitDroppedFrameCount;
el.innerHTML =
'animation:' +
i +
',decoded:' +
video.webkitDecodedFrameCount +
',dropped:' +
video.webkitDroppedFrameCount;
window.requestAnimationFrame(foo);
}
foo();
Expand Down
Loading

0 comments on commit 729a36d

Please sign in to comment.