mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-10-09 04:09:34 +02:00

The import, when the code is copied to develop a plugin, results an invalid path. Fixing the path manually as a plugin developer is easy, but it shouldn't be necessary. To fix that, the type is replaced with a string in zoraxy_plugin.IntroSpect and validation is added to lifecycle.go to ensure all subscribed events are valid. A downside is that the list of validEventNames has to be updated whenever a new event is created, but this is mitigated by placing definitions of that list and the actual event names right next to each other.