Remove debug and try/catch
try/catch was there because Firefox decided to not show me any errors...
This commit is contained in:
parent
b1c84b99ac
commit
9e372ca130
|
@ -17,18 +17,14 @@ import './global.scss';
|
||||||
import './sidebar.scss';
|
import './sidebar.scss';
|
||||||
|
|
||||||
const Sidebar = () => {
|
const Sidebar = () => {
|
||||||
try {
|
|
||||||
const [origin, setOrigin] = React.useState<string | null>(null);
|
const [origin, setOrigin] = React.useState<string | null>(null);
|
||||||
const [minValueLength, setMinValueLength] = React.useState<
|
const [minValueLength, setMinValueLength] = React.useState<number | null>(
|
||||||
number | null
|
|
||||||
>(
|
|
||||||
localStorage.getItem('minValueLength') === null
|
localStorage.getItem('minValueLength') === null
|
||||||
? 7
|
? 7
|
||||||
: (localStorage.getItem('minValueLength') as unknown as number)
|
: (localStorage.getItem('minValueLength') as unknown as number)
|
||||||
);
|
);
|
||||||
const [cookiesOnly, setCookiesOnly] = React.useState<boolean>(false);
|
const [cookiesOnly, setCookiesOnly] = React.useState<boolean>(false);
|
||||||
const [stolenDataView, setStolenDataView] =
|
const [stolenDataView, setStolenDataView] = React.useState<boolean>(true);
|
||||||
React.useState<boolean>(true);
|
|
||||||
const [cookiesOrOriginOnly, setCookiesOrOriginOnly] =
|
const [cookiesOrOriginOnly, setCookiesOrOriginOnly] =
|
||||||
React.useState<boolean>(false);
|
React.useState<boolean>(false);
|
||||||
const [counter, setCounter] = useEmitter(getMemory());
|
const [counter, setCounter] = useEmitter(getMemory());
|
||||||
|
@ -81,9 +77,7 @@ const Sidebar = () => {
|
||||||
<div className="sidebar">
|
<div className="sidebar">
|
||||||
<header
|
<header
|
||||||
className={
|
className={
|
||||||
logoVisibility
|
logoVisibility ? 'header' : 'header header--without-logo'
|
||||||
? 'header'
|
|
||||||
: 'header header--without-logo'
|
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
@ -130,9 +124,7 @@ const Sidebar = () => {
|
||||||
|
|
||||||
{stolenDataView ? (
|
{stolenDataView ? (
|
||||||
<nav>
|
<nav>
|
||||||
<button
|
<button onClick={() => setStolenDataView(!stolenDataView)}>
|
||||||
onClick={() => setStolenDataView(!stolenDataView)}
|
|
||||||
>
|
|
||||||
<img
|
<img
|
||||||
src="/assets/icons/settings.svg"
|
src="/assets/icons/settings.svg"
|
||||||
width="20"
|
width="20"
|
||||||
|
@ -193,9 +185,7 @@ const Sidebar = () => {
|
||||||
width="20"
|
width="20"
|
||||||
height="20"
|
height="20"
|
||||||
/>
|
/>
|
||||||
<span>
|
<span>Utwórz wiadomość dla administratora witryny</span>
|
||||||
Utwórz wiadomość dla administratora witryny
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
</nav>
|
</nav>
|
||||||
) : null}
|
) : null}
|
||||||
|
@ -206,11 +196,11 @@ const Sidebar = () => {
|
||||||
{warningDataDialogAck ? (
|
{warningDataDialogAck ? (
|
||||||
<section className="warning-container">
|
<section className="warning-container">
|
||||||
<span>
|
<span>
|
||||||
<strong>Uwaga!</strong> Niekoniecznie
|
<strong>Uwaga!</strong> Niekoniecznie każda
|
||||||
każda przechwycona poniżej informacja
|
przechwycona poniżej informacja jest daną
|
||||||
jest daną osobową. Niektóre z podanych
|
osobową. Niektóre z podanych domen mogą
|
||||||
domen mogą należeć do właściciela strony
|
należeć do właściciela strony i nie
|
||||||
i nie reprezentować podmiotów trzecich.
|
reprezentować podmiotów trzecich.
|
||||||
</span>
|
</span>
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@ -255,9 +245,6 @@ const Sidebar = () => {
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} catch (e) {
|
|
||||||
console.error(e);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
debugger;
|
|
||||||
ReactDOM.render(<Sidebar />, document.getElementById('app'));
|
ReactDOM.render(<Sidebar />, document.getElementById('app'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user