Ensuring delete of -

This commit is contained in:
Sergiotarxz 2023-08-30 01:20:23 +02:00
parent 777ed80e8d
commit f101278a2c
2 changed files with 5 additions and 5 deletions

View File

@ -52,11 +52,11 @@ function executeAndroidExclusiveCode(android) {
pinToHomeUrl.addEventListener('click', () => { pinToHomeUrl.addEventListener('click', () => {
const url = new URL(window.location.href) const url = new URL(window.location.href)
const pathandQuery = url.pathname + url.search; const pathandQuery = url.pathname + url.search;
const label = pathandQuery.replace(/^.*\//g, ''). const label = (url.pathname.replace(/^.*\//g, '')
replace(/(?:^|-)\w/g, function(character) { .replace(/(?:^|-)\w/g, function(character) {
return character.toUpperCase() return character.toUpperCase()
}) + ' - Burguillos.info'; })
console.log(label) .replace(/-/g, ' ')) + ' - Burguillos.info';
const firstImg = document.querySelector('div.description img'); const firstImg = document.querySelector('div.description img');
let iconUrl; let iconUrl;
if (firstImg !== null) { if (firstImg !== null) {

File diff suppressed because one or more lines are too long