export function openFileDialog ( accept , multiple , callback ) { var inputElement = document . createElement ( 'input' ) ; inputElement . type = 'file' ; inputElement . accept = accept ; inputElement . multiple = multiple ; inputElement . addEventListener ( 'change' , callback ) ; inputElement . addEventListener ( 'blur' , callback ) ; inputElement . dispatchEvent ( new MouseEvent ( 'click' ) ) ; }