As you all know document.referrer is extremely unreliable, so going back to my original suggestion, when the user first runs the app, detect that and ask a setup question of "what is your url?" Save it to disk as your own config file, you don't need to rely on anything else assuming they don't change their URL.
↧