Skip to content

Commit ad08d33

Browse files
committed
fix: Can't close the app using Android phone (close quasarframework#1897)
1 parent 89ea438 commit ad08d33

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quasar-framework",
3-
"version": "0.15.10",
3+
"version": "0.15.11",
44
"description": "Build responsive websites, PWAs, hybrid mobile apps and Electron apps, all simultaneously using same codebase",
55
"files": [
66
"dist",

src/plugins/history.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export default {
2727
if (this.__history.length) {
2828
this.__history.pop().handler()
2929
}
30+
else if (window.location.hash === '#/') {
31+
navigator.app.exitApp()
32+
}
3033
else {
3134
window.history.back()
3235
}

0 commit comments

Comments
 (0)