core: Fix some grammar and style issues with the permission prompt.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled

This commit is contained in:
2025-11-13 12:30:42 -05:00
parent 89ec523ea2
commit bb67df7846
2 changed files with 3 additions and 1 deletions

View File

@@ -1249,6 +1249,8 @@ function api_requestPermission(permission, description) {
container.appendChild(document.createTextNode('for the action:'));
let description_div = document.createElement('div');
description_div.classList.add('w3-border');
description_div.classList.add('w3-padding');
description_div.style.backgroundColor = '#666';
description_div.style.maxHeight = '3em';
description_div.style.overflow = 'auto';
description_div.appendChild(document.createTextNode(description));

View File

@@ -443,7 +443,7 @@ async function getProcessBlob(blobId, key, options) {
} else if (typeof message === 'string') {
action = `Post a private message.`;
} else {
action = `Post a ${message?.type}.`;
action = `Publish ${'aeiou'.indexOf(message?.type?.toLowerCase()?.substring(0, 1)) != -1 ? 'an' : 'a'} "${message?.type}" message.`;
}
} catch {}
return Promise.resolve(