Update random.ts

This commit is contained in:
0x1eef 2024-03-16 14:09:35 -03:00
parent ec5c463abe
commit 43bd4f1fc4

View file

@ -1,6 +1,5 @@
const nameById = require("@json/slugs.json");
(function () { (function () {
const nameById = require("@json/slugs.json");
const surahId: number = Math.ceil(Math.random() * 114); const surahId: number = Math.ceil(Math.random() * 114);
const name = nameById[surahId]; const name = nameById[surahId];
const locale = location.pathname.slice(1, 3); const locale = location.pathname.slice(1, 3);