duckduckgo / p5-app-duckpan

DuckDuckHack OpenSource Development Application
http://metacpan.org/module/App::DuckPAN
Other
53 stars 47 forks source link

Accessing directories in the share dir doesn't work #136

Closed jagtalon closed 9 years ago

jagtalon commented 9 years ago

I have something like:

DDG.get_asset_path('currency', 'assets/' + (DDG.is3x ? '96' : DDG.is2x ? '64' : '32') + '/' + symbol + '.png');

But it doesn't work on DuckPAN.

moollaza commented 9 years ago

@jagtalon could you please elaborate on "doesn't work"? Is there an error? Is the path wrong? Or do you mean the resource is inaccessible?

jagtalon commented 9 years ago

Resource is inaccessible in the frontend. For example check out https://github.com/duckduckgo/zeroclickinfo-spice/pull/1351. The images can't be accessed from the assets folder:

screen shot 2015-01-15 at 6 24 00 am