mirror of https://github.com/OCA/web.git
commit
a13f5074a8
|
@ -8,6 +8,11 @@
|
||||||
|
|
||||||
export function getWebIconData(menu) {
|
export function getWebIconData(menu) {
|
||||||
const result = "/web_responsive/static/img/default_icon_app.png";
|
const result = "/web_responsive/static/img/default_icon_app.png";
|
||||||
|
const webIcon = menu.webIcon;
|
||||||
|
if (webIcon && webIcon.split(",").length === 2) {
|
||||||
|
const path = webIcon.replace(",", "/");
|
||||||
|
return path.startsWith("/") ? path : "/" + path;
|
||||||
|
}
|
||||||
const iconData = menu.webIconData;
|
const iconData = menu.webIconData;
|
||||||
if (!iconData) {
|
if (!iconData) {
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue