Custom Window Strategies

In addition to the built-in strategies, you can create your own by implementing and

Below you can see the implementation for the limitOpened() method used before. It simple compares the number of opened windows to the specified value.

The never() method has a similarly simple implementation — it just always returns false.

Mobile Analytics