summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index 7354b8ed5..d0071076b 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1482,7 +1482,7 @@ void browser_window_update(struct browser_window *bw, bool scroll_to_top)
/* if frag_id exists, then try to scroll to it */
/** \TODO don't do this if the user has scrolled */
if (bw->frag_id && html_get_id_offset(bw->current_content,
- lwc_string_data(bw->frag_id), &x, &y)) {
+ bw->frag_id, &x, &y)) {
browser_window_set_scroll(bw, x, y);
}
@@ -1501,7 +1501,7 @@ void browser_window_update(struct browser_window *bw, bool scroll_to_top)
/* if frag_id exists, then try to scroll to it */
/** \TODO don't do this if the user has scrolled */
if (bw->frag_id && html_get_id_offset(bw->current_content,
- lwc_string_data(bw->frag_id), &x, &y)) {
+ bw->frag_id, &x, &y)) {
browser_window_set_scroll(bw, x, y);
}
@@ -1519,7 +1519,7 @@ void browser_window_update(struct browser_window *bw, bool scroll_to_top)
/* if frag_id exists, then try to scroll to it */
/** \TODO don't do this if the user has scrolled */
if (bw->frag_id && html_get_id_offset(bw->current_content,
- lwc_string_data(bw->frag_id), &x, &y)) {
+ bw->frag_id, &x, &y)) {
browser_window_set_scroll(bw, x, y);
}