I am facing to problem with method new URL('address') in IE.
I have this code:
var href = location.href;
var hrefParams = new URL(href);
var api = hrefParams.searchParams.get("api");
In Firefox and Chrome it works at should and I will get the value of attribute "api".
But in IE I am getting error on console:
SCRIPT445: Object doesn't support this action
Console error debugger points to the problem with line
var hrefParams = new URL(href);
For solving of another problem I already invoking script
<script type="text/javascript" src="js/bluebird.min.js"></script>
But it doesn't fix this problem.
Any idea how to fix it in IE?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…