Skip to content

Commit

Permalink
second splash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
byeoon committed Oct 24, 2024
1 parent 2705b97 commit 53fd049
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/lib/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import AssetBrowser from "@/ui/settings/pages/AssetBrowser";
import Developer from "@/ui/settings/pages/Developer";
import { ReactNative as RN, NavigationNative } from "@metro/common";
import { findByProps } from "./metro/filters";
import { Tabs } from "@/ui/components";
const { hideActionSheet } = findByProps("openLazy", "hideActionSheet");

const { Stack, TableRow, TableRowIcon, TableSwitchRow, TableRowGroup }= Tabs;
export function initSplash() {
const { showSimpleActionSheet } = findByProps("showSimpleActionSheet");
console.log("Loading Opti Security");
window.alert("This is a test.");
if(window.vendetta.settings.developerSettings) {
showSimpleActionSheet({
key: "OptiPostload",
Expand All @@ -16,18 +16,12 @@ export function initSplash() {
onClose: () => hideActionSheet(),
},
options: [
// TODO: add logic
{ label: "Toggle Safe Mode", onPress: (o : any) => {
window.vendetta.settings.safeMode = o; }
window.vendetta.settings.safeMode == o; }
},
{ label: "Load without Opti",onPress: () =>{
alert("no");
} },
],
})
}
}
// navigation.push("VendettaCustomPage", {
// title: "Asset Browser",
// render: AssetBrowser,
// })
}}

0 comments on commit 53fd049

Please sign in to comment.