Explorar o código

Adjust add-phone cooldown defaults

chendeben hai 4 meses
pai
achega
5421d01106
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      background.js
  2. 1 1
      sidepanel/sidepanel.html
  3. 1 1
      sidepanel/sidepanel.js

+ 1 - 1
background.js

@@ -433,7 +433,7 @@ function normalizeRunCount(value) {
   if (!Number.isFinite(numeric)) {
   if (!Number.isFinite(numeric)) {
     return 1;
     return 1;
   }
   }
-  return Math.min(50, Math.max(1, Math.floor(numeric)));
+  return Math.max(1, Math.floor(numeric));
 }
 }
 
 
 function normalizeAutoRunTimerKind(value = '') {
 function normalizeAutoRunTimerKind(value = '') {

+ 1 - 1
sidepanel/sidepanel.html

@@ -30,7 +30,7 @@
     </div>
     </div>
     <div class="header-btns">
     <div class="header-btns">
       <div class="run-group">
       <div class="run-group">
-        <input type="number" id="input-run-count" class="run-count-input" value="1" min="1" max="50" title="运行次数" />
+        <input type="number" id="input-run-count" class="run-count-input" value="1" min="1" title="运行次数" />
         <button id="btn-auto-run" class="btn btn-success" title="自动执行全部步骤">
         <button id="btn-auto-run" class="btn btn-success" title="自动执行全部步骤">
           <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor">
           <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor">
             <polygon points="5 3 19 12 5 21 5 3" />
             <polygon points="5 3 19 12 5 21 5 3" />

+ 1 - 1
sidepanel/sidepanel.js

@@ -1045,7 +1045,7 @@ function formatAutoStepDelayInputValue(value) {
 }
 }
 
 
 function getRunCountValue() {
 function getRunCountValue() {
-  return Math.min(50, Math.max(1, parseInt(inputRunCount.value, 10) || 1));
+  return Math.max(1, parseInt(inputRunCount.value, 10) || 1);
 }
 }
 
 
 function updateFallbackThreadIntervalInputState() {
 function updateFallbackThreadIntervalInputState() {