Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BatteredBunny committed May 5, 2024
1 parent f0110a0 commit d064af4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ After that click on the extension icon in browser

### 1. Install native manifest & build extension
```
pnpm native-manifest install
pnpm build
yarn manifest:install
yarn build
```

### 2. Install extension to firefox
1. Navigate to ``about:debugging#/runtime/this-firefox``
2. Click ``Load temporary Add-on...``
3. Choose ``dist`` folder in the file picker
3. Choose ``manifest.json`` in ``dist`` folder in the file picker
4 changes: 2 additions & 2 deletions native/process_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ func processCommands(c chan map[string]any, cmd *exec.Cmd) {
}()

for msg := range c {
if command, exits := msg["command"]; exits {
if command, exists := msg["command"]; exists {
ptmx.WriteString(command.(string))
} else if signal, exits := msg["signal"]; exits {
} else if signal, exists := msg["signal"]; exists {
cmd.Process.Signal(signal.(os.Signal))
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/css/terminal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ body {
.window-header {
padding: 5px 10px 0 10px;
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 20px;

.header-title {
font-size: large;
font-weight: bold;
flex-grow: 1;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/html/terminal.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="window-header">
<div class="header-title">Browser terminal</div>

<div>
<div class="header-buttons">
<button id="new_tab_button">+</button>
<button id="kill_button">x</button>
</div>
Expand Down

0 comments on commit d064af4

Please sign in to comment.