File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323from readalongs ._version import VERSION
2424from readalongs .log import LOGGER
25- from readalongs .text .util import parse_xml
25+ from readalongs .text .util import CURRENT_WEB_APP_VERSION , parse_xml
2626
27- JS_BUNDLE_URL = "https://unpkg.com/@readalongs/web-component@^1.5.2/dist/bundle.js"
28- FONTS_BUNDLE_URL = (
29- "https://unpkg.com/@readalongs/web-component@^1.5.2/dist/fonts.b64.css"
30- )
27+ JS_BUNDLE_URL = f"https://unpkg.com/@readalongs/web-component@^{ CURRENT_WEB_APP_VERSION } /dist/bundle.js"
28+ FONTS_BUNDLE_URL = f"https://unpkg.com/@readalongs/web-component@^{ CURRENT_WEB_APP_VERSION } /dist/fonts.b64.css"
3129
3230BASIC_HTML = """
3331<!DOCTYPE html>
Original file line number Diff line number Diff line change 2323# removed "try: unicode() except" block (was for Python 2), but this file uses unicode()
2424# too many times, so define it anyway.
2525unicode = str
26- # todo: sync with web component major and minor releases
27- CURRENT_WEB_APP_VERSION = "1.4 .x"
26+ # TODO: auto sync with web component major and minor releases
27+ CURRENT_WEB_APP_VERSION = "1.5 .x"
2828
2929
3030def ensure_dirs (path ):
You can’t perform that action at this time.
0 commit comments