perf: template literals

This commit is contained in:
liyasthomas
2021-09-18 16:09:58 +05:30
parent 4236d1179c
commit e1e763575d
64 changed files with 425 additions and 333 deletions

View File

@@ -171,12 +171,12 @@ export default defineComponent({
if (workbox) {
workbox.addEventListener("installed", (event: any) => {
if (event.isUpdate) {
this.$toast.show(this.$t("app.new_version_found").toString(), {
this.$toast.show(`${this.$t("app.new_version_found")}`, {
icon: "download_for_offline",
duration: 0,
action: [
{
text: this.$t("app.reload").toString(),
text: `${this.$t("app.reload")}`,
onClick: (_, toastObject) => {
toastObject.goAway(0)
window.location.reload()