fix: temporary include devtools in release build

This commit is contained in:
reya
2024-07-02 14:58:00 +07:00
parent c52b20ca80
commit 15e62cad11
2 changed files with 3 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ export const Column = memo(function Column({
const [isCreated, setIsCreated] = useState(false);
const repositionWebview = useCallback(async () => {
if (!container?.current) throw new Error("something wrong.");
if (!container?.current) return console.log("something wrong.");
const newRect = container.current.getBoundingClientRect();
await invoke("reposition_column", {
@@ -35,7 +35,7 @@ export const Column = memo(function Column({
}, []);
const resizeWebview = useCallback(async () => {
if (!container?.current) throw new Error("something wrong.");
if (!container?.current) return console.log("something wrong.");
const newRect = container.current.getBoundingClientRect();
await invoke("resize_column", {