I need a JavaScript example / method to reload point_of_sale if POS session state is closed.
For example, if (this.env.pos.pos_session.state == 'closed')
reload()
any help will be greatly appreciated.
I need a JavaScript example / method to reload point_of_sale if POS session state is closed.
For example, if (this.env.pos.pos_session.state == 'closed')
reload()
any help will be greatly appreciated.
Hi,
Try this
if (this.env.pos.pos_session.state === 'closed') {
window.location.reload();
}
Hope it helps
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
0
août 23
|
7227 | |||
|
1
mai 25
|
10437 | |||
|
0
avr. 15
|
9306 | |||
|
0
nov. 23
|
38 | |||
|
1
nov. 23
|
3918 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.