diff --git a/src/components/TheTopbar.vue b/src/components/TheTopbar.vue
index c3d23f89..4846e37e 100644
--- a/src/components/TheTopbar.vue
+++ b/src/components/TheTopbar.vue
@@ -26,7 +26,7 @@
0 && navigator.maxTouchPoints !== 256)
}
+ get isIOS() {
+ return !!(
+ navigator.userAgent.match(/(iPad|iPhone|iPod)/) ||
+ // @ts-ignore
+ (navigator.platform === 'MacIntel' && typeof navigator.standalone !== 'undefined')
+ )
+ }
+
get moonrakerComponents() {
return this.$store.state.server?.components ?? []
}
diff --git a/src/components/panels/GcodefilesPanel.vue b/src/components/panels/GcodefilesPanel.vue
index 48416be9..89e9297e 100644
--- a/src/components/panels/GcodefilesPanel.vue
+++ b/src/components/panels/GcodefilesPanel.vue
@@ -29,7 +29,7 @@
@@ -585,7 +585,6 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
mdiCheckboxMarked = mdiCheckboxMarked
mdiDragVertical = mdiDragVertical
- validGcodeExtensions = validGcodeExtensions
formatFilesize = formatFilesize
formatPrintTime = formatPrintTime
sortFiles = sortFiles
@@ -668,6 +667,12 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
return this.files.findIndex((file) => file.filename === name) >= 0
}
+ get gcodeInputFileAccept() {
+ if (this.isIOS) return []
+
+ return validGcodeExtensions
+ }
+
get currentPath() {
const path = this.$store.state.gui.view.gcodefiles.currentPath
if (path === 'gcodes') return ''