mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Intro script elements renamed
This commit is contained in:
parent
bdb91cb40e
commit
b7b9f2f059
1 changed files with 8 additions and 8 deletions
|
|
@ -273,9 +273,9 @@ const Intro = ({ queryParams }) => {
|
||||||
};
|
};
|
||||||
}, [routeFocused]);
|
}, [routeFocused]);
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
var scriptElementFunction = document.createElement('script');
|
var initScriptElement = document.createElement('script');
|
||||||
var scriptElement = document.createElement('script');
|
var sdkScriptElement = document.createElement('script');
|
||||||
scriptElementFunction.innerHTML = `window.fbAsyncInit = function() {
|
initScriptElement.innerHTML = `window.fbAsyncInit = function() {
|
||||||
FB.init({
|
FB.init({
|
||||||
appId: '1537119779906825',
|
appId: '1537119779906825',
|
||||||
autoLogAppEvents: false,
|
autoLogAppEvents: false,
|
||||||
|
|
@ -283,11 +283,11 @@ const Intro = ({ queryParams }) => {
|
||||||
version: 'v2.5'
|
version: 'v2.5'
|
||||||
});
|
});
|
||||||
};`;
|
};`;
|
||||||
scriptElement.src = 'https://connect.facebook.net/en_US/sdk.js';
|
sdkScriptElement.src = 'https://connect.facebook.net/en_US/sdk.js';
|
||||||
scriptElement.async = true;
|
sdkScriptElement.async = true;
|
||||||
scriptElement.defer = true;
|
sdkScriptElement.defer = true;
|
||||||
document.body.appendChild(scriptElementFunction);
|
document.body.appendChild(initScriptElement);
|
||||||
document.body.appendChild(scriptElement);
|
document.body.appendChild(sdkScriptElement);
|
||||||
}, []);
|
}, []);
|
||||||
return (
|
return (
|
||||||
<div className={styles['intro-container']}>
|
<div className={styles['intro-container']}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue