[FIX] Fixed a small problem which falls to load the template in mobile
bzr revid: psa@tinyerp.com-20140221131215-nf1y2t3qbeiosujb
This commit is contained in:
parent
777506617a
commit
467ec6a919
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
start: function () {
|
||||
if (!window.location.origin) {
|
||||
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
|
||||
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '') + '/';
|
||||
}
|
||||
document.getElementById("mobile-viewport").src = window.location.origin + window.location.pathname + "#mobile-preview";
|
||||
this.$el.modal();
|
||||
|
|
Loading…
Reference in New Issue