MCPcopy Create free account
hub / github.com/TruthHun/BookStack / crossdomainGET

Function crossdomainGET

static/mergely/editor/editor.js:479–492  ·  view source on GitHub ↗
(ed, side, url)

Source from the content-addressed store, hash-verified

477 }
478
479 function crossdomainGET(ed, side, url) {
480 $.ajax({
481 type: 'GET', dataType: 'text',
482 data: {url: url},
483 url: '/ajax/handle_crossdomain.php',
484 contentType: 'text/plain',
485 success: function (response) {
486 ed.mergely(side, response);
487 },
488 error: function(xhr, ajaxOptions, thrownError){
489 console.error('error', xhr, ajaxOptions, thrownError);
490 }
491 });
492 }
493
494 function importFiles(ed) {
495 // -------------

Callers 1

importFilesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected