🐛 move pluginapi parts to special script container

This commit is contained in:
Romedius Weiss 2022-03-30 00:11:00 +02:00
parent 6d974e18a5
commit 2c9bf66f30

View file

@ -1,14 +1,4 @@
<script type="text/discourse-plugin" version="0.8" async> <script type="text/discourse-plugin" version="0.8">
// GNU-GPL-3.0-or-later
var its = (function() {
if(!$ || !$.ajax || !WebSocket) {
console.log('')
return;
}
////////////////////////////////////////////////////////////////////////////
const logos_small = { const logos_small = {
'open': settings.theme_uploads.logo_green, 'open': settings.theme_uploads.logo_green,
'closed': settings.theme_uploads.logo_red, 'closed': settings.theme_uploads.logo_red,
@ -21,6 +11,21 @@ var its = (function() {
'error': settings.theme_uploads.logo_name_yellow 'error': settings.theme_uploads.logo_name_yellow
}; };
console.log(logos_small);
</script>
<script async>
// GNU-GPL-3.0-or-later
var its = (function() {
if(!$ || !$.ajax || !WebSocket) {
console.log('')
return;
}
////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
var url = new URL(new URL(location.href).origin); var url = new URL(new URL(location.href).origin);