From a09960788ab900dc6d06170e2b33d8281d2ec08f Mon Sep 17 00:00:00 2001 From: Luca Tacconi Date: Tue, 23 Jul 2019 14:49:09 +0200 Subject: [PATCH] Avoid XML Parsing Error Avoid error message "XML Parsing Error: "Junk" after end of document" loading component --- src/httpVueLoader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/httpVueLoader.js b/src/httpVueLoader.js index 2c32519..e809aac 100644 --- a/src/httpVueLoader.js +++ b/src/httpVueLoader.js @@ -442,6 +442,7 @@ return new Promise(function(resolve, reject) { var xhr = new XMLHttpRequest(); + xhr.responseType = 'text'; xhr.open('GET', url); xhr.onreadystatechange = function() {