Skip to content

Commit

Permalink
fix: resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kubabutkiewicz committed Nov 20, 2024
1 parent 597470c commit 58d3ffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions desktop/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ const mainWindow = (): Promise<void> => {
// open the default browser instead of a new electron window
browserWindow.webContents.setWindowOpenHandler(({url}) => {
const denial = {action: 'deny'} as const;

// Make sure local urls stay in electron perimeter
if (url.slice(0, 'file://'.length).toLowerCase() === 'file://') {
return denial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import {CellContainer} from '@shopify/flash-list';
import type {CellContainerProps} from '@shopify/flash-list/dist/native/cell-container/CellContainer';
import type {ForwardedRef} from 'react';
import {forwardRef} from 'react';
import type {View} from 'react-native';

function OptionRowRendererComponent(props: CellContainerProps, ref: ForwardedRef<unknown>) {
function OptionRowRendererComponent(props: CellContainerProps, ref: ForwardedRef<View>) {
return (
<CellContainer
// eslint-disable-next-line react/jsx-props-no-spreading
Expand Down

0 comments on commit 58d3ffe

Please sign in to comment.