bugfix embed errors (#366)
This commit is contained in:
parent
5c643cc796
commit
2adbbc2899
1 changed files with 6 additions and 1 deletions
|
@ -341,7 +341,12 @@ function App(props: Props) {
|
|||
cmpScript.async = true;
|
||||
|
||||
const getLocaleEndpoint = 'https://api.odysee.com/locale/get';
|
||||
const gdprRequired = localStorage.getItem('gdprRequired');
|
||||
let gdprRequired;
|
||||
try {
|
||||
gdprRequired = localStorage.getItem('gdprRequired');
|
||||
} catch (err) {
|
||||
if (err) return;
|
||||
}
|
||||
// gdpr is known to be required, add script
|
||||
if (gdprRequired === 'true') {
|
||||
// $FlowFixMe
|
||||
|
|
Loading…
Reference in a new issue