chore: Update shareMode default value to false
This commit is contained in:
parent
8f8fac826e
commit
3170bc4be6
@ -26,7 +26,6 @@ want more features? Create an issue and let me know.
|
||||
|
||||
You can install the extension from the [Chrome Web Store](https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo)
|
||||
|
||||
Note: You can install the extension on any Chromium-based browser. It is not limited to Chrome.
|
||||
|
||||
### Manual Installation
|
||||
|
||||
@ -126,6 +125,13 @@ This will start a development server and watch for changes in the source files.
|
||||
- [ ] More Customization Options
|
||||
- [ ] Better UI/UX
|
||||
|
||||
|
||||
## Privacy
|
||||
|
||||
Page Assist does not collect any personal data. The only time the extension communicates with the server is when you are using the share feature, which can be disabled from the settings.
|
||||
|
||||
All the data is stored locally in the browser storage. You can view the source code and verify it yourself.
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions are welcome. If you have any feature requests, bug reports, or questions, feel free to create an issue.
|
||||
|
@ -29,7 +29,7 @@ export default function OptionLayout({
|
||||
}) {
|
||||
const [sidebarOpen, setSidebarOpen] = useState(false)
|
||||
const { t } = useTranslation(["option", "common"])
|
||||
const [shareModeEnabled] = useStorage("shareMode", true)
|
||||
const [shareModeEnabled] = useStorage("shareMode", false)
|
||||
|
||||
const {
|
||||
selectedModel,
|
||||
|
@ -11,7 +11,10 @@ import { useStorage } from "@plasmohq/storage/hook"
|
||||
export const OptionShareBody = () => {
|
||||
const queryClient = useQueryClient()
|
||||
const { t } = useTranslation(["settings"])
|
||||
const [shareModeEnabled, setShareModelEnabled] = useStorage("shareMode", true)
|
||||
const [shareModeEnabled, setShareModelEnabled] = useStorage(
|
||||
"shareMode",
|
||||
false
|
||||
)
|
||||
|
||||
const { status, data } = useQuery({
|
||||
queryKey: ["fetchShareInfo"],
|
||||
@ -25,8 +28,12 @@ export const OptionShareBody = () => {
|
||||
})
|
||||
|
||||
const onSubmit = async (values: { url: string }) => {
|
||||
const isOk = await verifyPageShareURL(values.url)
|
||||
if (isOk) {
|
||||
if (shareModeEnabled) {
|
||||
const isOk = await verifyPageShareURL(values.url)
|
||||
if (isOk) {
|
||||
await setPageShareUrl(values.url)
|
||||
}
|
||||
} else {
|
||||
await setPageShareUrl(values.url)
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ export default defineConfig({
|
||||
outDir: "build",
|
||||
|
||||
manifest: {
|
||||
version: "1.1.7",
|
||||
version: "1.1.8",
|
||||
name:
|
||||
process.env.TARGET === "firefox"
|
||||
? "Page Assist - A Web UI for Local AI Models"
|
||||
|
Loading…
x
Reference in New Issue
Block a user