Replace deprecated function

This commit is contained in:
Moritz Ulmer
2023-03-21 09:41:08 +01:00
parent 6366f9132b
commit f64bb7ba6b

View File

@@ -160,7 +160,7 @@
const classname = base_class.name;
const pos = type.lastIndexOf("/");
base_class.category = type.substr(0, pos);
base_class.category = type.substring(0, pos);
if (!base_class.title) {
base_class.title = classname;