diff --git a/build.nix b/build.nix
index 04ce141..ab87994 100644
--- a/build.nix
+++ b/build.nix
@@ -5,7 +5,7 @@
}: let
buildExtension = pkgs.mkYarnPackage rec {
name = "browser_terminal";
- version = "1.4.2";
+ version = "1.4.3";
src = ./.;
diff --git a/native/manifest/manifest_unix.go b/native/manifest/manifest_unix.go
index 696a047..bc50af1 100644
--- a/native/manifest/manifest_unix.go
+++ b/native/manifest/manifest_unix.go
@@ -22,7 +22,7 @@ const genericManifest = `{
const chromiumID = "chrome-extension://nbnfihffeffdhcbblmekelobgmdccfnl/"
const edgeID = "chrome-extension://dboagbeogaikhnjldgdighffjfejpeoj/"
-const firefoxID = "browser_terminal@sly.ee"
+const firefoxID = "browser_terminal@catnip.ee"
func buildManifestFirefox(path string) []byte {
return []byte(fmt.Sprintf(genericManifest, path, "allowed_extensions", firefoxID))
diff --git a/package.json b/package.json
index b4526df..5f85568 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "browser_terminal",
- "version": "1.4.2",
+ "version": "1.4.3",
"description": "Extension that allows you to open a native shell in the browser",
"scripts": {
"start": "npm run start:firefox",
diff --git a/src/html/terminal.html b/src/html/terminal.html
index fcde764..7bd4453 100644
--- a/src/html/terminal.html
+++ b/src/html/terminal.html
@@ -18,7 +18,11 @@
diff --git a/src/js/terminal.js b/src/js/terminal.js
index d072f04..00d427c 100644
--- a/src/js/terminal.js
+++ b/src/js/terminal.js
@@ -7,6 +7,7 @@ import browser from "webextension-polyfill";
const TERMINAL = document.getElementById("terminal");
const BANNER = document.getElementById("banner");
const KILL_BUTTON = document.getElementById("kill_button");
+const NEW_TAB_BUTTON = document.getElementById("new_tab_button");
const EXTENSION_NAME = "browser_terminal";
let port = browser.runtime.connectNative(EXTENSION_NAME);
@@ -60,4 +61,9 @@ port.onMessage.addListener((response) => {
KILL_BUTTON.addEventListener("click", () => {
send_signal(10)
+ window.close()
})
+
+NEW_TAB_BUTTON.addEventListener("click", () => {
+ window.open("/html/terminal.html")
+})
\ No newline at end of file
diff --git a/src/manifest.json b/src/manifest.json
index e4a324f..f6bea86 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -1,15 +1,15 @@
{
"manifest_version": 3,
"name": "Browser terminal",
- "version": "1.4.2",
+ "version": "1.4.3",
"description": "Extension that allows you to open a native shell in the browser",
"icons": {
"512": "icons/icon.png"
},
"browser_specific_settings": {
"gecko": {
- "id": "browser_terminal@sly.ee",
- "strict_min_version": "101.0"
+ "id": "browser_terminal@catnip.ee",
+ "strict_min_version": "109.0"
}
},
"permissions": [