This PR adds getBrowserName system command, which parses and returns the user agent string (as described here), effectively putting it in to the "it" variable.
This allows you to write scripts like:
on openCard
getBrowserName
if it != "Firefox"
then
sendWarning
else
deleteWarning
end if
end openCard
on sendWarning
tell area "Browser Warning" of current card to set "hide" to false
end sendWarning
on deleteWarning
delete area "Browser Warning" of current card
end deleteWarning
main points
been a while
This PR adds
getBrowserName
system command, which parses and returns the user agent string (as described here), effectively putting it in to the "it" variable.This allows you to write scripts like:
which i added to bootstrap.html