mirror of
https://github.com/janet-lang/janet
synced 2025-09-11 23:36:07 +00:00
Remove resolver element in path tuple.
Try to simplify module/paths back to how it used to be.
This commit is contained in:
@@ -20,9 +20,10 @@
|
||||
|
||||
(defn- check-http-url
|
||||
[path]
|
||||
(or (string/has-prefix? "http://" path)
|
||||
(string/has-prefix? "https://" path)))
|
||||
(if (or (string/has-prefix? "http://" path)
|
||||
(string/has-prefix? "https://" path))
|
||||
path))
|
||||
|
||||
# Add the module loader and path tuple to right places
|
||||
(array/push module/paths ["HTTP" :janet-http check-http-url identity])
|
||||
(array/push module/paths [check-http-url :janet-http])
|
||||
(put module/loaders :janet-http load-url)
|
||||
|
Reference in New Issue
Block a user