fix: temporary include devtools in release build
This commit is contained in:
@@ -24,7 +24,7 @@ export const Column = memo(function Column({
|
|||||||
const [isCreated, setIsCreated] = useState(false);
|
const [isCreated, setIsCreated] = useState(false);
|
||||||
|
|
||||||
const repositionWebview = useCallback(async () => {
|
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();
|
const newRect = container.current.getBoundingClientRect();
|
||||||
await invoke("reposition_column", {
|
await invoke("reposition_column", {
|
||||||
@@ -35,7 +35,7 @@ export const Column = memo(function Column({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const resizeWebview = useCallback(async () => {
|
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();
|
const newRect = container.current.getBoundingClientRect();
|
||||||
await invoke("resize_column", {
|
await invoke("resize_column", {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ tauri = { version = "2.0.0-beta", features = [
|
|||||||
"macos-private-api",
|
"macos-private-api",
|
||||||
"native-tls-vendored",
|
"native-tls-vendored",
|
||||||
"protocol-asset",
|
"protocol-asset",
|
||||||
|
"devtools",
|
||||||
] }
|
] }
|
||||||
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||||
tauri-plugin-clipboard-manager = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
tauri-plugin-clipboard-manager = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||||
|
|||||||
Reference in New Issue
Block a user