unprint 0.15.5 → 0.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/app.js +1 -3
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -523,8 +523,6 @@ function queryStyle(context, selector, customOptions) {
|
|
|
523
523
|
removeStyleFunctionSpaces(element, options);
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
console.log('OPTIONS', options.styleAttribute);
|
|
527
|
-
|
|
528
526
|
if (element.style) {
|
|
529
527
|
return options.styleAttribute
|
|
530
528
|
? element.style.getPropertyValue(options.styleAttribute)
|
|
@@ -1074,7 +1072,7 @@ async function request(url, body, customOptions = {}, method = 'GET') {
|
|
|
1074
1072
|
statusText: res.statusText,
|
|
1075
1073
|
});
|
|
1076
1074
|
|
|
1077
|
-
if (['application/json', 'application/javascript'].
|
|
1075
|
+
if (['application/json', 'application/javascript'].some((type) => res.headers['content-type'].includes(type)) && typeof res.data === 'object') {
|
|
1078
1076
|
return {
|
|
1079
1077
|
...base,
|
|
1080
1078
|
data: res.data,
|