1
+ /**
2
+ * @name Xero
3
+ * @urlAlias xero.com
4
+ * @urlRegex '*://*.xero.com/*'
5
+ */
1
6
'use strict' ;
2
7
3
- togglbutton . render ( '.xrh -header--main:not(.toggl)' , { } , function ( elem ) {
4
- const container = $ ( '.xrh -addons' ) ;
8
+ togglbutton . render ( '.xnav -header--main:not(.toggl)' , { } , function ( elem ) {
9
+ const container = $ ( '.xnav -addons' ) ;
5
10
let descriptionNode ;
6
11
7
12
if ( $ ( '#page_title h1' ) ) {
@@ -50,7 +55,7 @@ togglbutton.render('.xrh-header--main:not(.toggl)', {}, function (elem) {
50
55
const div = createTag ( 'div' , 'xrh-focusable--child xrh-iconwrapper' ) ;
51
56
div . appendChild ( link ) ;
52
57
53
- const button = createTag ( 'button' , 'xrh- button xrh -addon--iconbutton xrh -header--iconbutton xrh -focusable--parent' ) ;
58
+ const button = createTag ( 'button' , 'xnav-header- button xnav -addon--iconbutton xnav -header--iconbutton xnav -focusable--parent' ) ;
54
59
button . type = 'button' ;
55
60
56
61
button . addEventListener ( 'click' , function ( e ) {
@@ -60,11 +65,11 @@ togglbutton.render('.xrh-header--main:not(.toggl)', {}, function (elem) {
60
65
61
66
button . appendChild ( div ) ;
62
67
63
- const liTag = createTag ( 'li' , 'xrh -addon' ) ;
68
+ const liTag = createTag ( 'li' , 'xnav -addon' ) ;
64
69
liTag . appendChild ( button ) ;
65
70
66
71
if ( container ) {
67
- const userIcon = $ ( '[data-automationid="xrh -addon-user"]' , container ) ;
72
+ const userIcon = $ ( '[data-automationid="xnav -addon-user"]' , container ) ;
68
73
container . insertBefore ( liTag , userIcon ) ;
69
74
}
70
75
} ) ;
0 commit comments