Reflect bookmark state in icon title to make it accessible to screen readers (#255)

This commit is contained in:
Josiah Ulfers
2017-07-24 20:55:52 -04:00
committed by wbamberg
parent f40d1785e2
commit c44687d64e

View File

@@ -16,6 +16,11 @@ function updateIcon() {
},
tabId: currentTab.id
});
browser.browserAction.setTitle({
// Screen readers can see the title
title: currentBookmark ? 'Unbookmark it!' : 'Bookmark it!',
tabId: currentTab.id
});
}
/*