mirror of
https://github.com/simonw/datasette-vega.git
synced 2026-10-01 14:24:14 +02:00
Only inject assets on table page
This commit is contained in:
parent
8b54a0f175
commit
04b904add3
1 changed files with 6 additions and 4 deletions
|
|
@ -20,10 +20,12 @@ def cached_filepaths_for_extension(extension):
|
|||
|
||||
|
||||
@hookimpl
|
||||
def extra_css_urls():
|
||||
return cached_filepaths_for_extension('css')
|
||||
def extra_css_urls(view_name):
|
||||
if view_name == "table":
|
||||
return cached_filepaths_for_extension('css')
|
||||
|
||||
|
||||
@hookimpl
|
||||
def extra_js_urls():
|
||||
return cached_filepaths_for_extension('js')
|
||||
def extra_js_urls(view_name):
|
||||
if view_name == "table":
|
||||
return cached_filepaths_for_extension('js')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue