Use index.js instead of main.js

This commit is contained in:
Alex Ling 2020-07-24 09:30:10 +00:00
parent f116e2f1d0
commit 33107670ce

View File

@ -127,7 +127,7 @@ class Plugin
raise Error.new "Plugin with title #{title} not found" raise Error.new "Plugin with title #{title} not found"
end end
@js_path = File.join info.dir, "main.js" @js_path = File.join info.dir, "index.js"
@storage_path = File.join info.dir, "storage.json" @storage_path = File.join info.dir, "storage.json"
unless File.exists? @js_path unless File.exists? @js_path