Skip to content

Commit

Permalink
Automatically restart when after a placeholder was seen.
Browse files Browse the repository at this point in the history
This continues the current exploration, which is darned handy.
  • Loading branch information
Mike Castle committed Sep 21, 2024
1 parent 2b0d430 commit 7d1542c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,10 @@ window.plugin.explore.dataRefreshed = function() {
window.plugin.explore.portalDetailsUpdated = function(details) {
const state = window.plugin.explore.state;
state.cacheMarker(details.portal);
if (!state.exploring && state.status.startsWith('Saw placeholder ')) {
console.log('restarting...');
state.start();
}
}

/** Triggered from a command button. */
Expand Down

0 comments on commit 7d1542c

Please sign in to comment.