mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Load only one set of CSS files per module.
There are times, a module is loaded multiple times, and returns same set of CSS files mulitple times, in order to avoid loading the same file multiple times, we will create a set out of the list of CSS files.
This commit is contained in:
parent
01e83f1807
commit
7513cebd8c
@ -57,7 +57,7 @@ class PgAdmin(Flask):
|
||||
stylesheets = []
|
||||
for module in self.submodules:
|
||||
stylesheets.extend(getattr(module, "stylesheets", []))
|
||||
return stylesheets
|
||||
return set(stylesheets)
|
||||
|
||||
@property
|
||||
def messages(self):
|
||||
|
Loading…
Reference in New Issue
Block a user