Closed jondashkyle closed 6 years ago
Agree, that behavior can be jarring. Why not call that preference item show_url_preview
(set to true
by default)?
Otherwise PR looks fine to me, will just have to update model_version
for the next public release so older clients are prompted to update their preferences.
About that side note: could you attach the preferences.json
file where the error occurs? My regex to strip the comments might not be matching soft tabs or a rogue character.
Makes sense to me! Soft tabs was the issue; you can replicate quite easily.
Merged, thanks! 👌
Will have a look at that soft tab issue, too.
This enables a preference to be hide the status when hovering over links. Alternatively, this could check to see if the
href
is linking to another domain, and if so display the status, otherwise hide.Personally find this fading in and out frequently to be a distraction. On mobile, where you don’t have hover states, this functionality doesn’t exist, and doesn’t feel like a security risk.
Side note, I tried adding a comment to the
preferences.json
consistent with the established formatting convention (//
), but it throws an error about malformed JSON. Weird!