mirror of
https://github.com/Hopiu/RandomWallpaperGnome3.git
synced 2026-03-16 22:20:24 +00:00
enhance reddit linking
This commit is contained in:
parent
3e11305aab
commit
4cc27badee
1 changed files with 2 additions and 1 deletions
|
|
@ -395,7 +395,8 @@ var RedditAdapter = new Lang.Class({
|
|||
|
||||
if (callback) {
|
||||
let historyEntry = new HistoryModule.HistoryEntry(null, 'reddit', imageDownloadUrl);
|
||||
historyEntry.source.sourceUrl = 'https://www.reddit.com/' + submission.permalink;
|
||||
historyEntry.source.sourceUrl = 'https://www.reddit.com/' + submission.subreddit_name_prefixed;
|
||||
historyEntry.source.imageLinkUrl = 'https://www.reddit.com/' + submission.permalink;
|
||||
callback(historyEntry);
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue