Skip to content

Commit

Permalink
Merge pull request #1587 from VirtualFlyBrain/development
Browse files Browse the repository at this point in the history
Fixes from Development
  • Loading branch information
Robbie1977 authored Jan 27, 2025
2 parents c402de1 + 681d8e6 commit 96bab7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/VFBMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,8 @@ class VFBMain extends React.Component {
// if a user data query is called and the VFBu_ id is not loaded after timeout then it must still be being analysed
let url = window.location.origin + window.location.pathname + "?id=" + querySplit[0].trim() + "&q=" + query;
// Use an IIFE (Immediately Invoked Function Expression) to create a closure and capture the variables
(function(querySplit, url) {
setTimeout(function() {
(function (querySplit, url) {
setTimeout(function () {
if (window[querySplit[0].trim()] == undefined) {
if (confirm("The image you uploaded is still being analysed; this can take over an hour. \nClick OK to check again or Cancel to just open VFB.")) {
window.ga('vfb.send', 'event', 'opening', 'uploadQuery', querySplit[0].trim());
Expand Down

0 comments on commit 96bab7c

Please sign in to comment.