Skip to content

Commit 9508800

Browse files
committed
v1
1 parent 52600aa commit 9508800

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

resources/assets/component.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ let _componentMegaBlock = {
2828
var token= document.querySelector('meta[name="csrf-token"]').getAttribute('content');
2929
xhr.setRequestHeader("X-CSRF-TOKEN", token);
3030
if(method == 'GET'){
31+
xhr.setRequestHeader("Content-type", "application/text;charset=UTF-8");
3132
xhr.responseType = "text";
3233
xhr.send(null);
3334
}else {

src/DPLViewer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public static function makeComponentLine(Form $form, string $column, string $tit
5656
}else{
5757
$data = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS);
5858
}
59-
$data = self::safeJson($data);
6059
self::script(<<<EOF
6160
componentLine("{$column}",JSON.parse('$settings'),JSON.parse('$data'));
6261
EOF

0 commit comments

Comments
 (0)