You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
remove: webuiError file to avoid inf loading
This commit is contained in:
@@ -170,7 +170,6 @@ androidComponents.onVariants { variant ->
|
||||
set.add(Pair(root.file("webroot/js/language.js").asFile, null))
|
||||
set.add(Pair(root.file("webroot/js/light.icon.js").asFile, null))
|
||||
set.add(Pair(root.file("webroot/js/restoreError.js").asFile, null))
|
||||
set.add(Pair(root.file("webroot/js/webuiError.js").asFile, null))
|
||||
|
||||
set.add(Pair(root.file("webroot/js/list/module.js").asFile, null))
|
||||
set.add(Pair(root.file("webroot/js/list/settings.js").asFile, null))
|
||||
|
||||
@@ -121,7 +121,6 @@ extract "$ZIPFILE" 'webroot/js/theme.js' "$MODPATH/webroot/js" true
|
||||
extract "$ZIPFILE" 'webroot/js/language.js' "$MODPATH/webroot/js" true
|
||||
extract "$ZIPFILE" 'webroot/js/light.icon.js' "$MODPATH/webroot/js/list" true
|
||||
extract "$ZIPFILE" 'webroot/js/restoreError.js' "$MODPATH/webroot/js/list" true
|
||||
extract "$ZIPFILE" 'webroot/js/webuiError.js' "$MODPATH/webroot/js/list" true
|
||||
|
||||
extract "$ZIPFILE" 'webroot/js/list/module.js' "$MODPATH/webroot/js/list" true
|
||||
extract "$ZIPFILE" 'webroot/js/list/settings.js' "$MODPATH/webroot/js/list" true
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<script src="js/theme.js" type="module"></script>
|
||||
<script src="js/restoreError.js" type="module"></script>
|
||||
<script src="js/webuiError.js" type="module"></script>
|
||||
<script src="js/list/module.js" type="module"></script>
|
||||
<script src="js/list/settings.js" type="module"></script>
|
||||
<script src="js/list/language.js" type="module"></script>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { fullScreen, exec, toast } from './kernelsu.js'
|
||||
import { setNewLanguage, getTranslations } from './language.js'
|
||||
import { sendError } from './webuiError.js'
|
||||
|
||||
(async () => {
|
||||
const EXPECTED = 1
|
||||
@@ -157,9 +156,7 @@ import { sendError } from './webuiError.js'
|
||||
} else {
|
||||
toast(`${translations.cmdErrors.find}: ${findModulesCmd.stderr}`)
|
||||
}
|
||||
})().catch(err => {
|
||||
sendError(err)
|
||||
})
|
||||
})()
|
||||
|
||||
function setLangData(mode) {
|
||||
localStorage.setItem('/system/language', mode)
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
window.addEventListener('error', (e) => {
|
||||
console.log(e.stack)
|
||||
const previousError = localStorage.getItem('/system/error')
|
||||
localStorage.setItem('/system/error', previousError + `\n` + e.stack)
|
||||
document.getElementById('errorh_panel').innerHTML += e.stack
|
||||
})
|
||||
|
||||
export function sendError(e) {
|
||||
console.log(e.stack)
|
||||
const previousError = localStorage.getItem('/system/error')
|
||||
localStorage.setItem('/system/error', previousError + `\n` + e.stack)
|
||||
document.getElementById('errorh_panel').innerHTML += e.stack
|
||||
}
|
||||
Reference in New Issue
Block a user