Skip to content

Commit 4beabef

Browse files
authored
Merge pull request ucfopen#1065 from Ishfaq-code/sensory-miuse-bug-final
SensoryMisuse bug Fix
2 parents 94a82d4 + 9c944e5 commit 4beabef

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

assets/js/Services/Html.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -429,13 +429,6 @@ export const findXpathFromElement = (element) => {
429429

430430
export const findElementWithXpath = (content, xpath) => {
431431

432-
if(xpath.startsWith('/html[1]/body[1]/main[1]/')) {
433-
xpath = xpath.replace('/html[1]/body[1]/main[1]/', '/html[1]/body[1]/')
434-
}
435-
else if (xpath.startsWith('/html[1]/body[1]/div[1]/')) {
436-
xpath = xpath.replace('/html[1]/body[1]/div[1]/', '/html[1]/body[1]/')
437-
}
438-
439432
if(xpath.startsWith('/')) {
440433
xpath = xpath.substring(1)
441434
}

0 commit comments

Comments
 (0)