Ver código fonte

add contentUrl to utils

weichen 4 anos atrás
pai
commit
23869db9f9
1 arquivos alterados com 4 adições e 0 exclusões
  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 + '/';
 }