🐛 move pluginapi parts to special script container
This commit is contained in:
parent
6d974e18a5
commit
2c9bf66f30
1 changed files with 16 additions and 11 deletions
|
@ -1,14 +1,4 @@
|
|||
<script type="text/discourse-plugin" version="0.8" async>
|
||||
// GNU-GPL-3.0-or-later
|
||||
|
||||
var its = (function() {
|
||||
if(!$ || !$.ajax || !WebSocket) {
|
||||
console.log('')
|
||||
return;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
<script type="text/discourse-plugin" version="0.8">
|
||||
const logos_small = {
|
||||
'open': settings.theme_uploads.logo_green,
|
||||
'closed': settings.theme_uploads.logo_red,
|
||||
|
@ -21,6 +11,21 @@ var its = (function() {
|
|||
'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);
|
||||
|
|
Loading…
Reference in a new issue