revisions
This commit is contained in:
parent
191d321c2a
commit
0762b18bcb
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue