增加标注图片地址404判断

This commit is contained in:
zh
2025-07-04 13:57:08 +08:00
parent a35b959ec2
commit 5431efa2c5
3 changed files with 73 additions and 7 deletions

View File

@ -926,8 +926,14 @@
get_current_frame: function() { return player.current_frame() },
load_url: function(src,callback){
if (!load_setup(callback)) return;
var h = new XMLHttpRequest();
h.onreadystatechange = function() {
if (h.readyState == 4) {
if (h.status == 404) {
callback(404)
}
}
};
// new browsers (XMLHttpRequest2-compliant)
h.open('GET', src, true);