facultymatt / angular-unsavedChanges

angular-unsavedChanges
175 stars 81 forks source link

Confirm Box is Displaying [Object,Object] #53

Open menelaosbgr opened 9 years ago

menelaosbgr commented 9 years ago

I'm not sure whether I am missing a configuration or whether something has changed in browsers. Definitely the onUnload behavior has changed in firefox for example: http://stackoverflow.com/a/9420213/1688441

Instead of the messages I am getting [ object, object ] .

I have pulled a local copy of the code and changed the confirmation line to:

  if (!confirm(messages.navigate.$$state.value))

instead of

  if (!confirm(messages.navigate))
stodolos commented 8 years ago

I came across the same thing.