Fixed title in createButton

This commit is contained in:
Official Noob 2019-08-21 19:15:35 +01:00 committed by GitHub
parent 47d0d340d4
commit 6e0c6332cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -544,7 +544,7 @@ function createButton(baseID, title, callback, imageName) {
let newButton = document.createElement("button");
newButton.id = baseID+"Button";
newButton.className = "ytp-button playerButton";
newButton.setAttribute("title", chrome.i18n.getMessage(baseID));
newButton.setAttribute("title", chrome.i18n.getMessage(title));
newButton.addEventListener("click", callback);
// Image HTML
let newButtonImage = document.createElement("img");