| 974 | } |
| 975 | |
| 976 | async function imageFallbackInternal() { |
| 977 | let image: string | undefined; |
| 978 | if (this.page.getImage) { |
| 979 | image = await this.page.getImage(); |
| 980 | } |
| 981 | if (!image && this.page.sync.getImage && state.on === 'SYNC') { |
| 982 | image = this.page.sync.getImage(); |
| 983 | } |
| 984 | if (!image && this.page.overview?.getImage && state.on === 'OVERVIEW') { |
| 985 | image = this.page.overview.getImage(); |
| 986 | } |
| 987 | |
| 988 | if (image) { |
| 989 | con.log('Image Fallback', image); |
| 990 | clearInterval(this.imageFallbackInterval); |
| 991 | this.singleObj.setImage(image); |
| 992 | } |
| 993 | } |
| 994 | } |
| 995 | |
| 996 | incorrectUrl() { |