cleanup: Replace deprecated String.prototype.substr()

The method is documented as deprecated:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr

Switch to the non-deprecated substring() method.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3234>
This commit is contained in:
Florian Müllner
2024-03-05 20:20:49 +01:00
committed by Marge Bot
parent 193b6c129e
commit df50c2dfc6
4 changed files with 8 additions and 8 deletions

View File

@ -62,6 +62,6 @@ export function loadSubInterfaceXML(iface, ifaceFile) {
return (
xmlHeader +
xml.substr(ifaceStartIndex, ifaceEndIndex - ifaceStartIndex) +
xml.substring(ifaceStartIndex, ifaceEndIndex) +
xmlFooter);
}