mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix custom fonts in sandboxed docs;
`@import` must be at the very start of a `<style>` tag Reported-by: @thaddeuskkr (thx!)
This commit is contained in:
parent
687df2fabd
commit
5a62cb4869
|
@ -8030,7 +8030,7 @@ function sandbox(tgt, rules, cls, html) {
|
|||
}
|
||||
|
||||
html = '<html class="iframe ' + document.documentElement.className +
|
||||
'"><head><style>html{background:#eee;color:#000}\n' + globalcss() +
|
||||
'"><head><style>html{background:#eee;color:#000}</style><style>' + globalcss() +
|
||||
'</style><base target="_parent"></head><body id="b" class="logue ' + cls + '">' + html +
|
||||
'<script>' + env + '</script>' + sandboxjs() +
|
||||
'<script>var d=document.documentElement,TS="' + TS + '",' +
|
||||
|
|
Loading…
Reference in a new issue