Skip to content

Commit

Permalink
Merge pull request #4188 from guardian/graphic/default-to-on-with-too…
Browse files Browse the repository at this point in the history
…ltip
  • Loading branch information
twrichards authored Nov 8, 2023
2 parents 6ce0a0c + 6f93c1a commit 9195efe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kahuna/public/js/services/graphic-image-blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export const graphicImageBlurService = angular.module("kahuna.services.graphicIm
$cookies.put(COOKIE_SHOULD_BLUR_GRAPHIC_IMAGES, newCookieValue, cookieOptions);
window.location.reload();
},
acceptDefaultOfBlurringGraphicImages: () =>
$cookies.put(COOKIE_SHOULD_BLUR_GRAPHIC_IMAGES, "true", cookieOptions),
acceptDefaultOfBlurringGraphicImages: () => {
$cookies.put(COOKIE_SHOULD_BLUR_GRAPHIC_IMAGES, "true", cookieOptions);
window.location.reload();
},
isPotentiallyGraphic: (image) => shouldBlurGraphicImages && (
image.data.isPotentiallyGraphic || // server can flag images as potentially graphic by inspecting deep in the metadata at query time (not available to the client)
!![
Expand Down

0 comments on commit 9195efe

Please sign in to comment.