Skip to content

Commit

Permalink
fix: fix simwrapper#138, images don't reload on tabs in chrome-local-…
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
billyc committed Mar 29, 2022
1 parent b8035c2 commit f7ba932
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/charts/slideshow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ export default class VueComponent extends Vue {
* Try to figure out what file they really want.
*/
private async buildImageUrlFromUserPath(path: string) {
// first get correct folder contents
// if image is already loaded, just return it
if (path.startsWith('data:image')) return path
// get correct folder contents
let folder = this.subfolder
if (path.indexOf('/') > -1) folder += '/' + path.substring(0, path.lastIndexOf('/'))
Expand Down

0 comments on commit f7ba932

Please sign in to comment.