fixed CSP error with inline js
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
function make_shortcode(){{
|
||||
var xmlHttp = new XMLHttpRequest();
|
||||
const theUrl = "/mksc/" + document.getElementById("searchBar").value;
|
||||
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
|
||||
xmlHttp.send( null );
|
||||
document.getElementById("context_href").innerHTML = xmlHttp.responseText;
|
||||
document.getElementById('context_href').setAttribute("href", "/" + xmlHttp.responseText);
|
||||
}}
|
||||
Reference in New Issue
Block a user