Skip to content

Commit

Permalink
Added support for the Browser Extension to work with Microsoft Edge (#…
Browse files Browse the repository at this point in the history
…1141)

* added support for microsoft-edge-beta and microsoft-edge-dev for the browser extension
  • Loading branch information
AnishDe12020 authored Jul 13, 2021
1 parent d883128 commit ad94385
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/shell/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ function installService() {
[`${confDir}/google-chrome-unstable/NativeMessagingHosts/`, google],
[`${confDir}/BraveSoftware/Brave-Browser/NativeMessagingHosts/`, google],
[`${homeDir}/.mozilla/native-messaging-hosts/`, mozilla],
[`${homeDir}/.config/microsoft-edge-dev/NativeMessagingHosts`, google],
[`${homeDir}/.config/microsoft-edge-beta/NativeMessagingHosts`, google],
];

// If running as a user extension, ensure the DBus service, desktop entry,
Expand Down Expand Up @@ -197,8 +199,8 @@ function installService() {
for (const [dirname, contents] of manifests)
_installFile(dirname, manifestFile, contents);

// Otherwise, if running as a system extension, ensure anything previously
// installed when running as a user extension is removed.
// Otherwise, if running as a system extension, ensure anything previously
// installed when running as a user extension is removed.
} else {
GLib.unlink(GLib.build_filenamev([dbusDir, dbusFile]));
GLib.unlink(GLib.build_filenamev([appDir, appFile]));
Expand Down

0 comments on commit ad94385

Please sign in to comment.