Update changelog, remove substr

Closes #1234
This commit is contained in:
Zack Rauen 2022-06-25 03:50:55 -04:00
parent 085847644c
commit 04eb399ea2
3 changed files with 25 additions and 3 deletions

View File

@ -2,6 +2,28 @@
This changelog starts with the restructured 1.0.0 release that happened after context isolation changes. The changelogs here should more-or-less mirror the ones that get shown in the client but probably with less formatting and pizzazz.
## 1.5.3
### Added
### Removed
### Changed
### Fixed
- Fixed Canary crashing immediately
## 1.5.2
### Added
### Removed
### Changed
### Fixed
- Fixed being unable to inject into settings, thanks @Strencher
## 1.5.1
### Added

View File

@ -12,7 +12,7 @@ export default function() {
}
if (request === namespace || request.startsWith(prefix)) {
const requested = request.substr(prefix.length);
const requested = request.slice(prefix.length);
if (requested == "bdapi") return BdApi;
}

View File

@ -164,8 +164,8 @@ export default class AddonManager {
if (line.charAt(0) === "@" && line.charAt(1) !== " ") {
out[field] = accum;
const l = line.indexOf(" ");
field = line.substr(1, l - 1);
accum = line.substr(l + 1);
field = line.substring(1, l);
accum = line.substring(l + 1);
}
else {
accum += " " + line.replace("\\n", "\n").replace(escapedAtRegex, "@");