Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor (el, location) {
const hash = location.hash ? queryString.parse(location.hash) : {};
this.options = {
kiosk: Boolean(hash.kiosk),
model: hash.model || '',
preset: hash.preset || '',
cameraPosition: hash.cameraPosition
? hash.cameraPosition.split(',').map(Number)
: null
};
this.el = el;
this.viewer = null;
this.viewerEl = null;
this.spinnerEl = el.querySelector('.spinner');
this.dropEl = el.querySelector('.dropzone');
this.inputEl = el.querySelector('#file-input');
this.validationCtrl = new ValidationController(el);