fix duplicate api.js load, frontend stable
This commit is contained in:
@@ -142,8 +142,6 @@ Domains jährlich: <span id="costDomain">0</span> €<br>
|
||||
</section>
|
||||
|
||||
|
||||
<script src="js/api.js"></script>
|
||||
<script src="js/ui.js"></script>
|
||||
|
||||
<div id="resourceModal" class="modal">
|
||||
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
|
||||
window.resources = []
|
||||
|
||||
async function loadResources(){
|
||||
|
||||
const resources = await api(API + "/resources/active");
|
||||
window.resources = await api(API + "/resources/active")
|
||||
const resources = window.resources
|
||||
|
||||
const mappings = await api(API + "/domainmap");
|
||||
|
||||
const table = document.getElementById("resources");
|
||||
|
||||
Reference in New Issue
Block a user