Files
discord-decomp/_bundle/extractOpacity.js
T
2026-11-01 12:12:55 +02:00

6 lines
228 B
JavaScript

// Metro module 8537 (f8538).
export default function extractOpacity(a0) {
const r0 = typeof a0 === "string" && a0.trim().endsWith("%") ? +a0.slice(0, -1) / 100 : +a0;
return isNaN(r0) ? 1 : 1 < r0 ? 1 : Math.max(r0, 0);
};