This repository was archived by the owner on Jun 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,8 +169,11 @@ pageProgressTracker = {};
169169
170170function handlePageSetup ( ) {
171171
172- let data = { timezoneoffset : ( new Date ( ) ) . getTimezoneOffset ( ) / 60 }
173- jQuery . get ( eBookConfig . ajaxURL + 'set_tz_offset' , data , function ( ) { } ) . error ( notifyRunestoneComponents ) ;
172+ if ( eBookConfig . useRunestoneServices ) {
173+ jQuery . get ( eBookConfig . ajaxURL + 'set_tz_offset' , {
174+ timezoneoffset : ( new Date ( ) ) . getTimezoneOffset ( ) / 60
175+ } ) ;
176+ }
174177
175178 if ( eBookConfig . isLoggedIn ) {
176179 mess = `username: ${ eBookConfig . username } `
Original file line number Diff line number Diff line change @@ -202,5 +202,5 @@ def test_1(self):
202202 self .driver .get (self .host + "/lp_tester.s.html" )
203203 # Wait for script to run. I don't see a wait condition what would work, unfortunately.
204204 sleep (0.5 )
205- # self.assertEqual(self.driver.execute_script('return LPList["e1"].textAreas[0].getValue();'), 'xxx')
206- # self.assertEqual(self.driver.execute_script('return LPList["e1"].textAreas[1].getValue();'), 'yyy')
205+ self .assertEqual (self .driver .execute_script ('return LPList["e1"].textAreas[0].getValue();' ), 'xxx' )
206+ self .assertEqual (self .driver .execute_script ('return LPList["e1"].textAreas[1].getValue();' ), 'yyy' )
You can’t perform that action at this time.
0 commit comments