Please help, i don’t know what is wrong

I try to make a currency site but somenthing going wrong with my code, it always gives out me reject but I need resolve let inputRub = document.getElementById(‘rub’), inputUsd = document.getElementById(‘usd’); inputRub.addEventListener(‘input’, () => { return new Promise(function(resolve, reject){ let request = new XMLHttpRequest(); request.open(‘GET’, ‘js/current.json’); request.setRequestHeader(‘Content-type’, ‘application/json; charset=utf-8’); request.send(); request.addEventListener(‘readystatechange’, function() { if (request.readyState…

Details

ionic link side menu item to external website

I am trying to link the side menu item to an external website, but it doesn’t seem to work Below is my code { title: ‘Word of the Week’, url: ‘/word’, icon: ‘./assets/sample-icons/side-menu/word.svg’ }, { title: ‘Facebook’, url: ‘https://www.fb.com’, icon: ‘./assets/sample-icons/side-menu/fb.svg’ }, I tried removing https, starting with www and other modifications but they don’t…

Details