Skip to content

Commit e5dd0bf

Browse files
fix: error when terminating terminal + fixed build (Acode-Foundation#2184)
Co-authored-by: Raunak Raj <71929976+bajrangCoder@users.noreply.github.com>
1 parent 501100f commit e5dd0bf

3 files changed

Lines changed: 9 additions & 16 deletions

File tree

package-lock.json

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/terminal/terminal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,7 @@ export default class TerminalComponent {
11401140
`http://localhost:${this.options.port}/terminals/${this.pid}/terminate`,
11411141
{
11421142
method: "POST",
1143+
data: {}, // Added empty object to satisfy the plugin's type checker
11431144
},
11441145
(res) => resolve(res),
11451146
(err) => reject(err),

src/plugins/auth/src/android/EncryptedPreferenceManager.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ public int getInt(String key, int defaultValue) {
5050
return sharedPreferences.getInt(key, defaultValue);
5151
}
5252

53+
public void setBoolean(String key, boolean value) {
54+
sharedPreferences.edit().putBoolean(key, value).apply();
55+
}
56+
57+
public boolean getBoolean(String key, boolean defaultValue) {
58+
return sharedPreferences.getBoolean(key, defaultValue);
59+
}
60+
5361
public void remove(String key) {
5462
sharedPreferences.edit().remove(key).apply();
5563
}

0 commit comments

Comments
 (0)