fix(build,types): migrate smart config filename and tighten TypeScript null handling
This commit is contained in:
@@ -35,7 +35,9 @@ export class Scroller {
|
||||
optionsArg: Parameters<typeof this.sweetScroller.toElement>[1]
|
||||
) {
|
||||
this.sweetScroller.toElement(elementArg, optionsArg);
|
||||
await plugins.smartdelay.delayFor(optionsArg.duration);
|
||||
if (optionsArg?.duration) {
|
||||
await plugins.smartdelay.delayFor(optionsArg.duration);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user