Skip to content

Commit

Permalink
Removing applyLinkActionsPatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Liao committed Feb 1, 2021
1 parent 68ca8cf commit c1e57b2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/host/polyfills/simpleView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,6 @@ export function applyStylesRevealerPatch(content: string) {
}
}

export function applyLinkActionsPatch(content: string) {
const pattern = /\"Elements panel\"/g;
if (content.match(pattern)) {
return content.replace(pattern, '"Elements panel" || destination === "Sources panel"');
} else {
return null;
}
}

export function applyQuickOpenPatch(content: string) {
// This patch removes the ability to use the quick open menu (CTRL + P)
const pattern = /handleAction\(context,\s*actionId\)\s*{\s*switch\s*\(actionId\)/;
Expand Down

0 comments on commit c1e57b2

Please sign in to comment.