@@ -23,10 +23,10 @@ function sendShareRequest(act, solutionId, callback) {
2323 xhr . setRequestHeader ( 'Content-Type' , 'application/json' ) ;
2424 xhr . responseType = 'json' ;
2525
26- xhr . onreadystatechange = ( ) => { callback ( xhr ) ; } ;
26+ xhr . onreadystatechange = ( ) => { callback ( xhr ) ; } ;
2727
2828 xhr . send (
29- JSON . stringify ( { act, solutionId } ) ,
29+ JSON . stringify ( { act, solutionId} ) ,
3030 ) ;
3131 return xhr ;
3232}
@@ -38,7 +38,7 @@ function trackCopyButton(button, context) {
3838}
3939
4040function hideShareLink ( xhr ) {
41- const shareBox = document . getElementById ( 'share -box' ) ;
41+ const shareBox = document . getElementById ( 'shared -box' ) ;
4242 if ( xhr . readyState === 4 ) {
4343 if ( xhr . status === 200 ) {
4444 shareBox . classList . add ( 'd-none' ) ;
@@ -49,8 +49,8 @@ function hideShareLink(xhr) {
4949}
5050
5151function updateShareLink ( xhr ) {
52- const shareBox = document . getElementById ( 'share -box' ) ;
53- const shareText = document . getElementById ( 'share -text' ) ;
52+ const shareBox = document . getElementById ( 'shared -box' ) ;
53+ const shareText = document . getElementById ( 'shared -text' ) ;
5454 if ( xhr . readyState === 4 ) {
5555 if ( xhr . status === 200 ) {
5656 if ( shareBox . classList . contains ( 'd-none' ) ) {
0 commit comments