Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve) => {
// Only on mobile devices
if (DeckDeckGoUtils.isMobile()) {
const info: HTMLElement = this.el.querySelector('[slot=\'info\']');
if (info && info.classList.contains('deckgo-show-info')) {
info.classList.remove('deckgo-show-info');
info.style.setProperty('pointer-events', 'none');
resolve(true);
return;
}
}
resolve(false);
});
}
componentWillLoad() {
this.mobile = DeckDeckGoUtils.isMobile();
}