File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,9 @@ SB3Downloader.propTypes = {
295295} ;
296296SB3Downloader . defaultProps = {
297297 className : '' ,
298- showSaveFilePicker : typeof showSaveFilePicker === 'function' ? window . showSaveFilePicker . bind ( window ) : null
298+ showSaveFilePicker : typeof showSaveFilePicker === 'function' && ! navigator . userAgent . includes ( 'Android' ) ?
299+ window . showSaveFilePicker . bind ( window ) :
300+ null
299301} ;
300302
301303const mapStateToProps = state => ( {
Original file line number Diff line number Diff line change @@ -288,7 +288,9 @@ const SBFileUploaderHOC = function (WrappedComponent) {
288288 onSetFileHandle : PropTypes . func
289289 } ;
290290 SBFileUploaderComponent . defaultProps = {
291- showOpenFilePicker : typeof showOpenFilePicker === 'function' ? window . showOpenFilePicker . bind ( window ) : null
291+ showOpenFilePicker : typeof showOpenFilePicker === 'function' && ! navigator . userAgent . includes ( 'Android' ) ?
292+ window . showOpenFilePicker . bind ( window ) :
293+ null
292294 } ;
293295 const mapStateToProps = ( state , ownProps ) => {
294296 const loadingState = state . scratchGui . projectState . loadingState ;
You can’t perform that action at this time.
0 commit comments