Skip to content

Commit

Permalink
Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersoncasimir authored Feb 29, 2024
1 parent 682fdfc commit 3ed8e6e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,16 @@ class EEGLabSeriesProvider extends Component<CProps, any> {
limit,
samplingFrequency,
} = props;

if (!window.EEGLabSeriesProviderStore) {
window.EEGLabSeriesProviderStore = [];
}
window.EEGLabSeriesProviderStore[chunksURL] = this.store;

/**
*
* @returns {void} - Confirmation dialog to prevent accidental page leave
*/
window.onbeforeunload = function() {
const dataset =
const dataset =
window.EEGLabSeriesProviderStore[chunksURL].getState().dataset;
if ([...dataset.addedTags, ...dataset.deletedTags].length > 0) {
return 'Are you sure you want to leave unsaved changes behind?';
Expand Down

0 comments on commit 3ed8e6e

Please sign in to comment.