Created convention file for frontend and adjusted current project files (#277)
Reviewed-on: #277 Reviewed-by: Mikolaj Widla <widlam@noreply.example.com> Co-authored-by: Adam Bem <adam.bem@zoho.eu> Co-committed-by: Adam Bem <adam.bem@zoho.eu>
This commit is contained in:
@@ -21,6 +21,8 @@ const emit = defineEmits([
|
||||
'update:error'
|
||||
])
|
||||
|
||||
const fetchLink = document.location.protocol + "//" + document.location.hostname + "/libxml/html/" + chooseType(props.formatType);
|
||||
|
||||
function chooseType(formatType: String){
|
||||
if (formatType == "HTML -> XML"){
|
||||
return "convert";
|
||||
@@ -45,8 +47,6 @@ function createBody(){
|
||||
});
|
||||
}
|
||||
|
||||
const fetchLink = document.location.protocol + "//" + document.location.hostname + "/libxml/html/" + chooseType(props.formatType);
|
||||
|
||||
|
||||
function process(){
|
||||
fetch(fetchLink, {body:createBody(), method: "POST"})
|
||||
|
||||
Reference in New Issue
Block a user