-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93cfe40
commit 5fb7037
Showing
4 changed files
with
48 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
/* eslint-disable */ | ||
const SocketCache = require("../../_common/base/socket_cache"); | ||
const CallbackElement = require("../pages/callback/callback"); | ||
const SocketCache = require('../../_common/base/socket_cache'); | ||
const CallbackElement = require('../pages/callback/callback.jsx'); | ||
|
||
const CallbackHandler = (() => { | ||
const onLoad = async () => { | ||
CallbackElement.init(); | ||
SocketCache.clear(); | ||
parent.window.is_logging_in = 1; // this flag is used in base.js to prevent auto-reloading this page | ||
}; | ||
const onLoad = async () => { | ||
CallbackElement.init(); | ||
SocketCache.clear(); | ||
|
||
return { | ||
onLoad, | ||
}; | ||
parent.window.is_logging_in = 1; // this flag is used in base.js to prevent auto-reloading this page | ||
}; | ||
|
||
return { | ||
onLoad, | ||
}; | ||
})(); | ||
|
||
module.exports = CallbackHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
/* eslint-disable */ | ||
import React from "react"; | ||
import AntiClickjack from "../_common/includes/anti_clickjack.jsx"; | ||
import React from 'react'; | ||
import AntiClickjack from '../_common/includes/anti_clickjack.jsx'; | ||
|
||
const Callback = () => ( | ||
<html> | ||
<head> | ||
<AntiClickjack /> | ||
{it.js_files.map((js_file, inx) => ( | ||
<script | ||
key={inx} | ||
src={js_file.replace( | ||
"{PLACEHOLDER_FOR_LANG}", | ||
it.language.toLowerCase() | ||
)} | ||
/> | ||
))} | ||
<link href="https://style.binary.com/binary.css" rel="stylesheet" /> | ||
<meta name="referrer" content="origin" /> | ||
</head> | ||
<body> | ||
<div id="content-holder"> | ||
<div id="content"> | ||
<div id="callback_container" /> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
<html> | ||
<head> | ||
<AntiClickjack /> | ||
{it.js_files.map((js_file, inx) => ( | ||
<script | ||
key={inx} | ||
src={js_file.replace( | ||
'{PLACEHOLDER_FOR_LANG}', | ||
it.language.toLowerCase() | ||
)} | ||
/> | ||
))} | ||
<link href='https://style.binary.com/binary.css' rel='stylesheet' /> | ||
<meta name='referrer' content='origin' /> | ||
</head> | ||
<body> | ||
<div id='content-holder'> | ||
<div id='content'> | ||
<div id='callback_container' /> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
); | ||
|
||
export default Callback; |