Uygulamadaki denediğim javascript çalıştırma kodları
webView.getSettings().setJavaScriptEnabled(true); webSettings.setJavaScriptEnabled(true);paylaşma kodları
const shareButton = document.querySelector('.share-button');
shareButton.addEventListener('click', event => {
if (navigator.share) {
navigator.share({
title: 'Hürpaz',
url: window.location.href
}).then(() => {
console.log('Paylaşıldı!');
})
.catch(console.error);
} else {
shareDialog.classList.add('is-open');
}
}
);document.querySelector('.share-button').addEventListener('click', function() {
if(navigator.share) {
navigator.share({
title: 'mobiForge: Web Share API'
text: 'Check out this great article about the Web Share API'
url: window.location.href
})
.then(() => console.log('Share complete'))
.error((error) => console.error('Could not share at this time', error))
}
});