summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2018-03-05 11:20:08 +0100
committerAdrien Dieudonne <adr@odoo.com>2018-03-05 14:06:23 +0100
commit599f6a762e91dd08d093243684183cdb9a3b3513 (patch)
tree4723e8e1aee3876e9052249dbb01cd8418582644 /addons/web/static/src/js/views/basic/basic_controller.js
parent1d6e4a6e6b89e0a589ab8f346365bdb22e073cf2 (diff)
[FIX] web: qweb: load template with non-http xhr
Since we are able to lazy load Qweb templates, there was an issue to generate Awesome Timesheet iOS native app with Cordova properly. It seems that under Cordova, iOS always returns 0 for the status on a xml http request object. The problem is that native applications are requesting a local file from something that isn't a webserver. The local file is delivered with no http headers that means no "200 OK" header and no "404 Not Found" errors. In this case, the request is still be completing as intended even if the status code used by browsers is 0. For more info, see: https://developer.mozilla.org/fr/docs/Web/API/XMLHttpRequest https://bugzilla.mozilla.org/show_bug.cgi?id=331610
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions