add a suffix in editor title

This commit is contained in:
tophf 2020-11-26 12:01:45 +03:00
parent a91183e1bb
commit 355f240779

View File

@ -300,7 +300,11 @@ lazyInit();
} }
function updateTitle(isDirty = dirty.isDirty()) { function updateTitle(isDirty = dirty.isDirty()) {
document.title = `${isDirty ? '* ' : ''}${style.customName || style.name}`; document.title = `${
isDirty ? '* ' : ''
}${
style.customName || style.name || t('addStyleLabel')
} - Stylus`; // the suffix enables external utilities to process our windows e.g. pin on top
} }
function updateLinter(key, value) { function updateLinter(key, value) {