mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-11-04 13:37:43 +03:00
fix: prevent broken tiling, by not including empty stings into rules
This commit is contained in:
parent
15f3507f7e
commit
9a5cbe498c
@ -129,7 +129,11 @@ export class ConfigImpl implements Config {
|
|||||||
if (!str || typeof str !== "string") {
|
if (!str || typeof str !== "string") {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
return str.split(",").map((part) => part.trim());
|
// Split by commas, trim and remove empty strings
|
||||||
|
return str
|
||||||
|
.split(",")
|
||||||
|
.map((part) => part.trim())
|
||||||
|
.filter((i) => i);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.kwinApi = kwinApi;
|
this.kwinApi = kwinApi;
|
||||||
|
Loading…
Reference in New Issue
Block a user