diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index ecbe50bcc..d25744e87 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2084,7 +2084,7 @@ function _storeScreenshot(bytes, pixbuf) { try { bookmarks.load_from_file(recentFile); } catch (e) { - if (!e.matches(GLib.BookmarkFileError.FILE_NOT_FOUND)) { + if (!e.matches(GLib.BookmarkFileError, GLib.BookmarkFileError.FILE_NOT_FOUND)) { log(`Could not open recent file ${uri}: ${e.message}`); return; }