You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var i = document.getElementById('videoElement'); console.log(i); // i.load(); var a = i.play(); if (a !== undefined) { a.then(function() { console.log('play worked.'); }) .catch(function(error){ console.error('ERROR!!') console.error(error); }); }
I am trying to minify the above code with slimit, getting error as "Unexpected token (CATCH, 'catch')"
The text was updated successfully, but these errors were encountered:
var i = document.getElementById('videoElement'); console.log(i); // i.load(); var a = i.play(); if (a !== undefined) { a.then(function() { console.log('play worked.'); }) .catch(function(error){ console.error('ERROR!!') console.error(error); }); }
I am trying to minify the above code with slimit, getting error as "Unexpected token (CATCH, 'catch')"
The text was updated successfully, but these errors were encountered: