diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/InlineHistory/web/inline-history.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/extensions/InlineHistory/web/inline-history.js b/extensions/InlineHistory/web/inline-history.js index 4c4452d6a..0c8293519 100644 --- a/extensions/InlineHistory/web/inline-history.js +++ b/extensions/InlineHistory/web/inline-history.js @@ -379,9 +379,13 @@ var inline_history = { }, confirmUnsafeUrl: function(url) { - return confirm( - 'This is considered an unsafe URL and could possibly be harmful.\n' - + 'The full URL is:\n\n' + url + '\n\nContinue?'); + try { + return confirm( + 'This is considered an unsafe URL and could possibly be harmful.\n' + + 'The full URL is:\n\n' + url + '\n\nContinue?'); + } catch(e) { + return false; + } }, previousElementSibling: function(el) { |