diff --git a/code/modules/nano/nanoui.dm b/code/modules/nano/nanoui.dm index 0a68fcd5977..355213ecf74 100644 --- a/code/modules/nano/nanoui.dm +++ b/code/modules/nano/nanoui.dm @@ -92,8 +92,8 @@ nanoui is used to open and update nano browser uis */ /datum/nanoui/proc/add_common_assets() add_script("libraries.min.js") // The jQuery library + add_script("nano_config.js") // The NanoConfig JS, this is used to store configuration values. add_script("nano_update.js") // The NanoUpdate JS, this is used to receive updates and apply them. - add_script("nano_config.js") // The NanoUpdate JS, this is used to receive updates and apply them. add_script("nano_base_helpers.js") // The NanoBaseHelpers JS, this is used to set up template helpers which are common to all templates add_stylesheet("shared.css") // this CSS sheet is common to all UIs add_stylesheet("icons.css") // this CSS sheet is common to all UIs @@ -258,8 +258,12 @@ nanoui is used to open and update nano browser uis */ /datum/nanoui/proc/get_header() var/head_content = "" + + for (var/filename in scripts) + head_content += " " + for (var/filename in stylesheets) - head_content += "" + head_content += " " var/templatel_data[0] for (var/key in templates) @@ -292,7 +296,7 @@ nanoui is used to open and update nano browser uis } else { - alert('receiveUpdateData error: something is not defined!'); + alert('receiveUpdateData ERROR: something is not defined!'); if (typeof NanoUpdate == 'undefined') { alert('NanoUpdate not defined!'); @@ -308,7 +312,7 @@ nanoui is used to open and update nano browser uis