Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 3a05a17

Browse files
Gorashdmo-odoo
authored andcommitted
[FIX] should use the dev mode with mobile and multi devices in same time
1 parent 732942d commit 3a05a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/odoo-integration-dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ odoo.define('web_editor.jabberwock', function(require) {
44

55
const script = document.createElement('script');
66
script.type = 'text/javascript';
7-
script.src = 'http://localhost:8080/odoo-integration.js';
7+
script.src = 'http://' + window.location.hostname + ':8080/odoo-integration.js';
88
document.getElementsByTagName('head')[0].appendChild(script);
99
return new Promise(resolve => {
1010
script.onload = () => {

0 commit comments

Comments
 (0)