Explorar el Código

Fix selector for sub components

jherve hace 2 años
padre
commit
17b258a1e7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/LinkedIn/ArtDecoCard.purs

+ 1 - 1
src/LinkedIn/ArtDecoCard.purs

@@ -32,7 +32,7 @@ instance Show ArtDecoCenterContent where
 
 parseArtDecoCenterContent ∷ Node → Effect (Either String ArtDecoCenterContent)
 parseArtDecoCenterContent n = do
-  list <- queryAndDetachMany ":scope .pvs-entity__sub-components" n
+  list <- queryAndDetachMany ":scope > ul > li" n
   pure $ Right (ArtDecoCenterContent (hush list))
 
 data ArtDecoCenterHeader = ArtDecoCenterHeader {