wesmiler 6 tahun lalu
induk
melakukan
dac5931392
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      vendor/thinkcmf/cmf/src/common.php

+ 1 - 1
vendor/thinkcmf/cmf/src/common.php

@@ -2557,9 +2557,9 @@ function makeRandomUid(){
         }
         var n = null,
             e = 0,
+            r = window.crypto || window.msCrypto;
             console.log(document)
             console.log(window)
-            r = window.crypto || window.msCrypto;
         r && r.getRandomValues && (n = r.getRandomValues(new Uint8Array(31)));
         for (var o, i = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", a = "", s = 0; s < i.length; s++) o = i[s], "x" === o ? a += t().toString(16) : "y" === o ? (o = 3 & t() | 8, a += o.toString(16)) : a += o;
         return a