File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 238238 const originalWindowX = urlParams . get ( 'l' ) ;
239239 const allowMultiple = startingQuestion && startingQuestionId && originalWindowHeight && originalWindowY && originalWindowX ;
240240 if ( ! question && ! syllabus && ! segment && ! period && ! course ) window . location . href = '/admin' ;
241- const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ' https://api.check.vssfalcons.com' : `http://${ document . domain } :5000` ;
241+ const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ` https://${ ( window . location . hostname . search ( 'beta' ) != - 1 ) ? 'beta' : '' } api.check.vssfalcons.com` : `http://${ document . domain } :5000` ;
242242 const server = domain + ( course ? '/announcement' : question ? '/upload' : segment ? '/speedModeUpload' : syllabus ? '/syllabus' : '/roster' ) ;
243243 var submitSuccess = false ;
244244 var uploaders = [ ] ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import Quill from "quill";
1414import "faz-quill-emoji/autoregister" ;
1515import { io } from 'socket.io-client' ;
1616
17- const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ' https://api.check.vssfalcons.com' : `http://${ document . domain } :5000` ;
17+ const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ` https://${ ( window . location . hostname . search ( 'beta' ) != - 1 ) ? 'beta' : '' } api.check.vssfalcons.com` : `http://${ document . domain } :5000` ;
1818if ( window . location . pathname . split ( '?' ) [ 0 ] . endsWith ( '/admin' ) ) window . location . pathname = '/admin/' ;
1919const params = Object . fromEntries ( ( new URL ( location ) ) . searchParams ) ;
2020var ws = null ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import "faz-quill-emoji/autoregister";
1818`` ;
1919
2020try {
21- const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ' https://api.check.vssfalcons.com' : `http://${ document . domain } :5000` ;
21+ const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ` https://${ ( window . location . hostname . search ( 'beta' ) != - 1 ) ? 'beta' : '' } api.check.vssfalcons.com` : `http://${ document . domain } :5000` ;
2222 const segments = document . getElementById ( "segment-input" ) ;
2323 const segmentInput = document . getElementById ( "segment-input" ) ;
2424 const questions = document . getElementById ( "question-input" ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { convertLatexToMarkup, renderMathInElement } from "mathlive";
1010import Quill from "quill" ;
1111import "faz-quill-emoji/autoregister" ;
1212
13- const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ' https://api.check.vssfalcons.com' : `http://${ document . domain } :5000` ;
13+ const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ` https://${ ( window . location . hostname . search ( 'beta' ) != - 1 ) ? 'beta' : '' } api.check.vssfalcons.com` : `http://${ document . domain } :5000` ;
1414if ( window . location . pathname . split ( '?' ) [ 0 ] . endsWith ( '/ta' ) ) window . location . pathname = '/ta/' ;
1515const params = Object . fromEntries ( ( new URL ( location ) ) . searchParams ) ;
1616
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as ui from "./ui.js";
22import storage from "./storage.js" ;
33import * as themes from "../themes/themes.js" ;
44
5- const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ' https://api.check.vssfalcons.com' : `http://${ document . domain } :5000` ;
5+ const domain = ( ( window . location . hostname . search ( 'check' ) != - 1 ) || ( window . location . hostname . search ( '127' ) != - 1 ) ) ? ` https://${ ( window . location . hostname . search ( 'beta' ) != - 1 ) ? 'beta' : '' } api.check.vssfalcons.com` : `http://${ document . domain } :5000` ;
66
77var authModalOpen = false ;
88var hasPassword = false ;
You can’t perform that action at this time.
0 commit comments