'location.pathname on iOS
I use this js condition to run some code if a certain page is visited.
if (location.pathname == '/members/') {
console.log("members page reached")
}
It works in all browsers on Windows, Android or Linux.
But the code somehow doesn't run on iOS devices. Is there something about location.pathname on iOS?
How can I get it to work on iOS device?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
