wip adding attributes, works with filter wp-script-attributes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import {PLGNTLS_fetch} from '../../utils/plgntls_fetch.js';
|
||||
|
||||
const inputElement = document.getElementById('mytext');
|
||||
const sendButton = document.getElementById('mybutton');
|
||||
|
||||
@@ -10,7 +12,9 @@ sendButton.addEventListener('click', () => {
|
||||
inputValue = JSON.stringify(inputValue);
|
||||
console.log("inputValue:");
|
||||
console.log(inputValue);
|
||||
PLGNTLS_fetch('/get_data', {inputValue})
|
||||
PLGNTLS_fetch('/plgntls/get_data', {
|
||||
method: "POST",
|
||||
})
|
||||
//PLGNTLS_fetch('get_data', {body: {inputValue}})
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
|
||||
Reference in New Issue
Block a user