Skip to content

Commit c4bf24e

Browse files
authored
[FBE] Fix accidentally deleted wrong function (#526)
thanks for the catch
1 parent 48d1023 commit c4bf24e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/code/Meta/BusinessExtension/view/adminhtml/web/js/fbe_allinone.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19611,12 +19611,12 @@ jQuery(document).ready(function() {
1961119611

1961219612
var FBUtils = (function(){
1961319613
return {
19614-
isIE : function isIE() {
19615-
return (
19616-
/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent)
19617-
);
19614+
parseURL: function parseURL(url) {
19615+
const parser = document.createElement('a');
19616+
parser.href = url;
19617+
return parser;
1961819618
},
19619-
19619+
1962019620
urlFromSameDomain : function urlFromSameDomain(url1, url2) {
1962119621
var u1 = FBUtils.parseURL(url1);
1962219622
var u2 = FBUtils.parseURL(url2);

app/code/Meta/BusinessExtension/view/adminhtml/web/js/lib/utils.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
var FBUtils = (function(){
1313
return {
14-
isIE : function isIE() {
15-
return (
16-
/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent)
17-
);
14+
parseURL: function parseURL(url) {
15+
const parser = document.createElement('a');
16+
parser.href = url;
17+
return parser;
1818
},
19-
19+
2020
urlFromSameDomain : function urlFromSameDomain(url1, url2) {
2121
var u1 = FBUtils.parseURL(url1);
2222
var u2 = FBUtils.parseURL(url2);

0 commit comments

Comments
 (0)