debug: log set_url null/stale/render; bump cache ver
This commit is contained in:
parent
aae2150dad
commit
efbd5f5839
@ -5,7 +5,7 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="{{entire_url('/bricks/3parties/xterm.css')}}" />
|
||||
<link rel="stylesheet" href="{{entire_url('/bricks/css/bricks.css')}}?v=20260815c">
|
||||
<link rel="stylesheet" href="{{entire_url('/bricks/css/bricks.css')}}?v=20260815d">
|
||||
<link rel="stylesheet" href="{{entire_url('/bricks/css/api_doc.css')}}">
|
||||
{% for mycss in cssfiles() %}
|
||||
<link rel="stylesheet" href="{{entire_url(mycss)}}">
|
||||
@ -37,7 +37,7 @@
|
||||
<script type="module"
|
||||
src="{{entire_url('/bricks/3parties/model-viewer.min.js')}}">
|
||||
</script>
|
||||
<script src="{{entire_url('/bricks/bricks.js')}}?v=20260815c"></script>
|
||||
<script src="{{entire_url('/bricks/bricks.js')}}?v=20260815d"></script>
|
||||
{% for myjs in jsfiles() %}
|
||||
<script src="{{entire_url(myjs)}}"></script>
|
||||
{% endfor %}
|
||||
|
||||
@ -27,13 +27,18 @@ bricks.Svg = class extends bricks.VBox {
|
||||
var token = this._url_token;
|
||||
if (!url){
|
||||
this.dom_element.innerHTML = '';
|
||||
console.log('SETURL null token=', token);
|
||||
return;
|
||||
}
|
||||
this.url = url;
|
||||
fetch(url)
|
||||
.then(response => response.text())
|
||||
.then(svgText => {
|
||||
if (token !== this._url_token) return;
|
||||
if (token !== this._url_token){
|
||||
console.log('SETURL STALE token=', token, 'cur=', this._url_token, 'url=', url);
|
||||
return;
|
||||
}
|
||||
console.log('SETURL RENDER url=', url, 'len=', svgText.length);
|
||||
if (svgText.startsWith("<svg ")){
|
||||
this.svgText = svgText;
|
||||
this.set_colored_svg(this.color);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user