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