Fixing error.
This commit is contained in:
parent
fb7b97cd37
commit
777ed80e8d
@ -52,10 +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 = pathandQuery.replace(/^.*\//g, '').
|
||||||
replace(/(?:^|-)\w/g, function(character) {
|
replace(/(?:^|-)\w/g, function(character) {
|
||||||
return character.toUpperCase()
|
return character.toUpperCase()
|
||||||
});
|
}) + ' - Burguillos.info';
|
||||||
|
console.log(label)
|
||||||
const firstImg = document.querySelector('div.description img');
|
const firstImg = document.querySelector('div.description img');
|
||||||
let iconUrl;
|
let iconUrl;
|
||||||
if (firstImg !== null) {
|
if (firstImg !== null) {
|
||||||
@ -65,6 +66,8 @@ function executeAndroidExclusiveCode(android) {
|
|||||||
}
|
}
|
||||||
if (iconUrl === undefined) {
|
if (iconUrl === undefined) {
|
||||||
const imagePreview = document.querySelector('meta[name="image"]');
|
const imagePreview = document.querySelector('meta[name="image"]');
|
||||||
|
console.error(imagePreview.content);
|
||||||
|
console.error(absoluteToHost(imagePreview.content));
|
||||||
iconUrl = absoluteToHost(imagePreview.content);
|
iconUrl = absoluteToHost(imagePreview.content);
|
||||||
}
|
}
|
||||||
console.error(iconUrl);
|
console.error(iconUrl);
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user