Skip to content

Commit 4a7c78a

Browse files
committed
Removing not-working patch for csp bypass
1 parent 319e186 commit 4a7c78a

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

patches/enhancer-csp-bypass.patch

Lines changed: 0 additions & 10 deletions
This file was deleted.

scripts/enhance-src.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,12 @@ patch -p0 --binary < "${WORKSPACE_DIR}/patches/enhancer-query-selector-fix.patch
4040
patch -p0 --binary < "${WORKSPACE_DIR}/patches/enhancer-urlhelper-fix.patch"
4141
patch -p0 --binary < "${WORKSPACE_DIR}/patches/enhancer-paths.patch"
4242
patch -p0 --binary < "${WORKSPACE_DIR}/patches/enhancer-titlebar-icons-fix.patch"
43-
patch -p0 --binary < "${WORKSPACE_DIR}/patches/enhancer-csp-bypass.patch"
4443
popd > /dev/null
4544

4645
log "Injecting enhancer loader..."
4746
for patchable_file in $(find . -type d \( -path ./${NOTION_EMBEDDED_NAME} -o -path ./node_modules \) -prune -false -o -name '*.js'); do
4847
patchable_file_dir=$(dirname $patchable_file)
49-
rel_loader_path=$(realpath ${NOTION_EMBEDDED_NAME}/pkg/loader.js --relative-to $patchable_file_dir)
48+
rel_loader_path=$(realpath ${NOTION_EMBEDDED_NAME}/pkg/loader.js --relative-to $patchable_file_dir)
5049
[ $patchable_file_dir = '.' ] && rel_loader_path="./"$rel_loader_path
5150
rel_loader_require="require('${rel_loader_path}')(__filename, exports);"
5251

0 commit comments

Comments
 (0)