-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Now Playing to Title Bar #6312
Conversation
Cloudflare Pages deployment
|
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
@@ -527,7 +527,7 @@ | |||
|
|||
function updateNowPlayingInfo(state) { | |||
const nowPlayingItem = state.NowPlayingItem; | |||
|
|||
var documentTitle = "Jellyfin"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected var, use let or const instead. no-var
Fix available:
var documentTitle = "Jellyfin"; | |
let documentTitle = "Jellyfin"; |
@@ -527,7 +527,7 @@ | |||
|
|||
function updateNowPlayingInfo(state) { | |||
const nowPlayingItem = state.NowPlayingItem; | |||
|
|||
var documentTitle = "Jellyfin"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings must use singlequote. @stylistic/quotes
Fix available:
var documentTitle = "Jellyfin"; | |
var documentTitle = 'Jellyfin'; |
secondaryText.appendChild(text); | ||
} | ||
} | ||
|
||
if (textLines[0].text) { | ||
const text = document.createElement('a'); | ||
text.innerText = textLines[0].text; | ||
if(documentTitle != "Jellyfin"){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected space(s) after "if". @stylistic/keyword-spacing
Fix available:
if(documentTitle != "Jellyfin"){ | |
if (documentTitle != "Jellyfin"){ |
secondaryText.appendChild(text); | ||
} | ||
} | ||
|
||
if (textLines[0].text) { | ||
const text = document.createElement('a'); | ||
text.innerText = textLines[0].text; | ||
if(documentTitle != "Jellyfin"){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings must use singlequote. @stylistic/quotes
Fix available:
if(documentTitle != "Jellyfin"){ | |
if(documentTitle != 'Jellyfin'){ |
secondaryText.appendChild(text); | ||
} | ||
} | ||
|
||
if (textLines[0].text) { | ||
const text = document.createElement('a'); | ||
text.innerText = textLines[0].text; | ||
if(documentTitle != "Jellyfin"){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space before opening brace. @stylistic/space-before-blocks
Fix available:
if(documentTitle != "Jellyfin"){ | |
if(documentTitle != "Jellyfin") { |
secondaryText.appendChild(text); | ||
} | ||
} | ||
|
||
if (textLines[0].text) { | ||
const text = document.createElement('a'); | ||
text.innerText = textLines[0].text; | ||
if(documentTitle != "Jellyfin"){ | ||
documentTitle +=' - '; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operator '+=' must be spaced. @stylistic/space-infix-ops
Fix available:
documentTitle +=' - '; | |
documentTitle += ' - '; |
Changes
Add currently playing media to Title Bar
Issues
Resolves #6301