Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre-Yves Gicquel
albiziapp
Commits
d0bb018e
Commit
d0bb018e
authored
Aug 09, 2019
by
gick
Browse files
noback
parent
4e105f92
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.js
View file @
d0bb018e
...
...
@@ -43,6 +43,14 @@ let DefaultIcon = L.icon({
shadowUrl
:
iconShadow
});
L
.
Marker
.
prototype
.
options
.
icon
=
DefaultIcon
;
var
foo
=
{
foo
:
true
};
// state object
history
.
pushState
(
foo
,
"
unused argument
"
,
"
#newInitialUri
"
);
var
bar
=
{
bar
:
true
}
history
.
pushState
(
bar
,
"
unused argument
"
,
"
#newStateOfWebApp
"
);
window
.
onpopstate
=
function
(
event
){
var
baz
=
{
baz
:
true
}
history
.
pushState
(
baz
,
"
unused argument
"
,
"
#baseState
"
);
};
Vue
.
config
.
devtools
=
true
window
.
location
.
hash
=
"
#de
"
;
...
...
@@ -83,22 +91,25 @@ const i18n = new VueI18n({
messages
})
function
noBack
(){
window
.
history
.
forward
()
}
noBack
();
window
.
onload
=
noBack
;
window
.
onpageshow
=
function
(
evt
){
if
(
evt
.
persisted
)
{
noBack
()
}
}
window
.
onunload
=
function
(){
void
(
0
)}
new
Vue
({
el
:
'
#app
'
,
i18n
,
render
:
h
=>
h
(
AppNavigator
),
created
(){
this
.
$ons
.
ready
(()
=>
{
this
.
$ons
.
disableDeviceBackButtonHandler
();
document
.
addEventListener
(
"
backbutton
"
,
e
=>
{
alert
(
'
de
'
)
e
.
preventDefault
();
e
.
stopPropagation
();
},
false
);
});
},
store
:
new
Vuex
.
Store
({
modules
:
storeLike
.
modules
,
plugins
:
[
scorePlugin
,
backupPlugin
,
loggerPlugin
,
statusPlugin
]
}),
beforeCreate
()
{
// Shortcut for Material Design
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment