mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 02:06:48 +00:00
add sanity check & debug mode to prefs; misc code cleanups
This commit is contained in:
20
functions.js
20
functions.js
@@ -1,5 +1,7 @@
|
||||
var hotkeys_enabled = true;
|
||||
|
||||
var xmlhttp_rpc = Ajax.getTransport();
|
||||
|
||||
function browser_has_opacity() {
|
||||
return navigator.userAgent.match("Gecko") != null ||
|
||||
navigator.userAgent.match("Opera") != null;
|
||||
@@ -463,8 +465,6 @@ function setActiveFeedId(id) {
|
||||
}
|
||||
}
|
||||
|
||||
var xmlhttp_rpc = Ajax.getTransport();
|
||||
|
||||
function parse_counters(reply, scheduled_call) {
|
||||
try {
|
||||
var f_document = getFeedsContext().document;
|
||||
@@ -1159,3 +1159,19 @@ function storeInitParam(key, value, is_client) {
|
||||
exception_error("storeInitParam", e);
|
||||
}
|
||||
}
|
||||
|
||||
function fatalError(code, message) {
|
||||
try {
|
||||
var fe = document.getElementById("fatal_error");
|
||||
var fc = document.getElementById("fatal_error_msg");
|
||||
|
||||
fc.innerHTML = "Code " + code + ": " + message;
|
||||
|
||||
fe.style.display = "block";
|
||||
|
||||
} catch (e) {
|
||||
exception_error("fatalError", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user