Change PWA name dynamically

Is it possible to change the name of the app programatically?

I have a pwa running on 2 different servers and didn’t want to change the name each time. Can I say something like

If href = "xxx" then
  {pwa.name} = "yyyy"
else
 {name? ,title?, description?} = "zzz"
end if