File tree Expand file tree Collapse file tree
src/livecodes/languages/scss Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,15 +58,15 @@ import { getLanguageCustomSettings } from '../../utils';
5858 const urlString = canonicalUrl . href ;
5959 const extension = '.' + language ; // .scss or .sass
6060 const result : Promise < { contents : string ; syntax : string } > = fetchStyles ( urlString )
61- . catch ( ( ) => fetchStyles ( urlString + extension ) )
62- . catch ( ( ) => fetchStyles ( urlString + '.css' ) )
6361 . catch ( ( ) => {
6462 const urlParts = urlString . split ( '/' ) ;
6563 const filename = urlParts [ urlParts . length - 1 ] ;
6664 const prefix = filename . startsWith ( '_' ) ? '' : '_' ;
6765 urlParts [ urlParts . length - 1 ] = prefix + filename + extension ;
6866 return fetchStyles ( urlParts . join ( '/' ) ) ;
6967 } )
68+ . catch ( ( ) => fetchStyles ( urlString + extension ) )
69+ . catch ( ( ) => fetchStyles ( urlString + '.css' ) )
7070 . catch ( ( ) => fetchStyles ( urlString + '/_index' + extension ) )
7171 . catch (
7272 ( ) =>
You can’t perform that action at this time.
0 commit comments