Show short names when hovering the preview bar

This commit is contained in:
Ajay Ramachandran
2020-07-03 21:16:38 -04:00
parent 4fc7a69dd5
commit c69047c7f9
2 changed files with 8 additions and 2 deletions

View File

@@ -350,6 +350,10 @@ class Utils {
return formatted;
}
shortCategoryName(categoryName: string): string {
return chrome.i18n.getMessage("category_" + categoryName + "_short") || chrome.i18n.getMessage("category_" + categoryName);
}
getRawSeconds(minutes: number, seconds: number): number {
return minutes * 60 + seconds;
}