File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ const _navigate_to_first_existing = (urls) => {
77
77
} ) ;
78
78
} ;
79
79
80
- const _on_version_switch = ( ) => {
81
- const selected_version = this . options [ this . selectedIndex ] . value + '/' ;
80
+ const _on_version_switch = ( event ) => {
81
+ const selected_version = event . target . value + '/' ;
82
82
const url = window . location . href ;
83
83
const new_url = url . replace (
84
84
_CURRENT_PREFIX ,
@@ -95,8 +95,8 @@ const _on_version_switch = () => {
95
95
}
96
96
} ;
97
97
98
- const _on_language_switch = ( ) => {
99
- let selected_language = this . options [ this . selectedIndex ] . value + '/' ;
98
+ const _on_language_switch = ( event ) => {
99
+ let selected_language = event . target . value + '/' ;
100
100
const url = window . location . href ;
101
101
if ( selected_language === 'en/' )
102
102
// Special 'default' case for English.
You can’t perform that action at this time.
0 commit comments