Explorar o código

add contentUrl to utils

weichen %!s(int64=4) %!d(string=hai) anos
pai
achega
23869db9f9
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      backstage/static/js/utils.js

+ 4 - 0
backstage/static/js/utils.js

@@ -23,4 +23,8 @@ function removeDescElement(p, textArea, inputButton, removeButton) {
 
 function removeDescData(blockArray, blockIndex, dataIndex) {
   blockArray[blockIndex].data.splice(dataIndex, 1);
+}
+
+const contentUrl = () => {
+  return 'http://localhost:1313' + (JSON.parse(document.getElementById('url').textContent)).url + '/';
 }