revisions

This commit is contained in:
Dennis Tang 2018-05-07 20:15:53 +02:00
parent 191d321c2a
commit 0762b18bcb

View file

@ -8,10 +8,10 @@ import * as CONSTANTS from './constants';
const mountComponent = (entryPoint, component, componentName, extraProps = {}) => {
const el = document.querySelector(entryPoint);
const hiddenInput = el.querySelector('input');
if (!el) return false;
const hiddenInput = el.querySelector('input');
return new Vue({
el,
components: {
@ -77,7 +77,7 @@ const initializeGapiClient = () => {
};
const initGkeDropdowns = () => {
if (typeof gapi === 'undefined') {
if (!gapi) {
gkeDropdownErrorHandler();
return false;
}