diff --git a/app/views/layouts/phone.html.slim b/app/views/layouts/phone.html.slim
index a20ffc3b..f62785cc 100644
--- a/app/views/layouts/phone.html.slim
+++ b/app/views/layouts/phone.html.slim
@@ -18,7 +18,7 @@ html lang="en"
link href="images/apple-touch-icon.png" rel="apple-touch-icon-precomposed"
link href="images/favicon.ico" rel="shortcut icon"
javascript:
- var QMobile, Quser, Qsupplier;
+ var QMobile, window.Quser, Quser = window.Quser, Qsupplier;
// Dummy holder when Qmobile object is not supplied by the mobile phone
QMobile || (QMobile = {
scanQr: function(){window.location = '/select_qrcode'}