Commit 2806f0de authored by dtseng's avatar dtseng Committed by Commit bot

Use an absolute URL when referencing earcon paths.

Necessary with upcoming ChromeVox2 changes.

Review URL: https://codereview.chromium.org/574693003

Cr-Commit-Position: refs/heads/master@{#295554}
parent ff65073c
......@@ -59,8 +59,8 @@ cvox.EarconsBackground.prototype.playEarcon = function(earcon) {
this.currentAudio = this.audioMap[earcon];
if (!this.currentAudio) {
this.currentAudio = new Audio(this.getBaseUrl() +
this.getEarconFilename(earcon));
this.currentAudio = new Audio(chrome.extension.getURL(this.getBaseUrl() +
this.getEarconFilename(earcon)));
this.audioMap[earcon] = this.currentAudio;
}
try {
......@@ -78,4 +78,4 @@ cvox.EarconsBackground.prototype.playEarcon = function(earcon) {
* The base URL for loading eracons.
* @type {string}
*/
cvox.EarconsBackground.BASE_URL = 'earcons/';
cvox.EarconsBackground.BASE_URL = 'chromevox/background/earcons/';
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment