mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
use 127.0.0.1 instead of localhost in local urls
This commit is contained in:
parent
5907629406
commit
63661713df
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ body {{ zoom: {}; {} }}
|
|||
|
||||
def webBundlePath(self, path):
|
||||
from aqt import mw
|
||||
return "http://localhost:%d/_anki/%s" % (mw.mediaServer.getPort(), path)
|
||||
return "http://127.0.0.1:%d/_anki/%s" % (mw.mediaServer.getPort(), path)
|
||||
|
||||
def bundledScript(self, fname):
|
||||
return '<script src="%s"></script>' % self.webBundlePath(fname)
|
||||
|
|
Loading…
Reference in a new issue