One easy solution is to only detect on the correct iframe, since detectWeb gets called for all frames. If you suspect detectWeb to return multiple, do some extra checking to make sure that it's the frame you want to work with.