hive-keychain-commons
Version:
Platform-agnostic functions used in Hive Keychain mobile and extensions
10 lines (9 loc) • 422 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const getImmutableImage = (url) => {
return !((url === null || url === void 0 ? void 0 : url.endsWith('.svg')) || (url === null || url === void 0 ? void 0 : url.startsWith('https://images.hive.blog/')))
? `https://images.hive.blog/0x0/${url}`
: url;
};
const ImageUtils = { getImmutableImage };
exports.default = ImageUtils;