Skip to content
Snippets Groups Projects
Commit 61901841 authored by Sven G. Brönstrup's avatar Sven G. Brönstrup
Browse files

Merge branch 'main' into extended-scripts

parents 76073dd2 5c843aec
No related branches found
No related tags found
1 merge request!1Extended scripts support
......@@ -4,6 +4,9 @@ stages:
- build
build-job:
only:
refs:
- main
stage: build
script:
- stack build
......
......@@ -227,6 +227,9 @@ checkLayer = do
checkObjectProperty :: Object -> Property -> LintWriter Layer
checkObjectProperty obj p@(Property name _) = case name of
"url" -> unwrapURI (Proxy @"website") p
(dependsOn . Link)
(const $ forbid "using \"url\" to open local html files is disallowed.")
"url" -> do
pure ()
unwrapURI (Proxy @"website") p
......@@ -408,7 +411,7 @@ checkTileLayerProperty p@(Property name _value) = case name of
suggestProperty $ Property "openWebsiteTrigger" (StrProp "onaction")
unwrapURI (Proxy @"website") p
(dependsOn . Link)
(dependsOn . Local)
(const $ forbid "using openWebsite to access local html files is disallowed.")
"openWebsiteTrigger" -> do
isString p
requireProperty "openWebsite"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment