Commit fe39ef3d authored by liujiaxin's avatar liujiaxin

222

parent 2530ce5c
......@@ -9,7 +9,7 @@ const isInElectron = localStorage.getItem('electron');
export class BackgroundImagePipe implements PipeTransform {
transform(value: any, coursewareSid?: string) {
return value > 0 ? `url(${value})` : '';
return `url(${value})` ;
// if (isInElectron && ElectronUtil.hasCached(coursewareSid, value)) {
// ret = `url(file://${APP_PATH}/courseware_cache/${coursewareSid}/${value})`;
// }
......
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