If you read subjected error message carefully, it tells you that you are accessing an object as function which is not a function at all.
In my case, I mistakenly access window.href as a function. for example, I wrote it as
which is wrong and that is why it was not functioning properly in chrome. The correct method is
I hope that after reading my post, you will able to understand that where you are doing mistake and correct it.
If this post help you then post your comments so that others can also consider this as a worth information.