mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
clipper: allow web clipper to connect with v3 web app
This commit is contained in:
@@ -37,6 +37,7 @@ const nnHost =
|
||||
process.env.NODE_ENV === "production"
|
||||
? "*://app.notesnook.com/*"
|
||||
: "*://localhost/*";
|
||||
const v3nnHost = "*://v3.notesnook.com/*";
|
||||
const corsHost = "https://cors.notesnook.com/*";
|
||||
const common = {
|
||||
name: "Notesnook Web Clipper",
|
||||
@@ -49,7 +50,7 @@ const common = {
|
||||
|
||||
const v2 = {
|
||||
...common,
|
||||
permissions: [...common.permissions, corsHost, nnHost],
|
||||
permissions: [...common.permissions, corsHost, nnHost, v3nnHost],
|
||||
optional_permissions: ["http://*/*", "https://*/*"],
|
||||
browser_specific_settings: {
|
||||
gecko: {
|
||||
|
||||
@@ -22,5 +22,5 @@ export const APP_URL =
|
||||
: "http://localhost:3000";
|
||||
export const APP_URL_FILTER =
|
||||
process.env.NODE_ENV === "production"
|
||||
? ["*://app.notesnook.com/*"]
|
||||
? ["*://app.notesnook.com/*", "*://v3.notesnook.com/*"]
|
||||
: ["*://localhost/*"];
|
||||
|
||||
Reference in New Issue
Block a user