Problem/Motivation

The module works perfectly when logged in, but it fails for Anonymous User on all devices.

On small devices (smartphone), a style which contains the enlarged image is mandatory. Inner Zoom, f.e.

Doesn't work for Anonymous at all

I tracked this down to this error, which only appears on Anonymous users:

Uncaught ReferenceError: Drupal is not defined

This seems to relate to
(function($){'use strict';Drupal.behaviors.easyzoom={attach:function(context,settings){var shadow_color=drupalSettings.elevate_tint_shadow_color;var …

Comments

nofue created an issue. See original summary.

nofue’s picture

Issue summary: View changes
nofue’s picture

Title: Doesn't work on iPhone iOS 17.x » Doesn't work for Anonymous
Issue summary: View changes
nofue’s picture

nofue’s picture

This is the fix -- add the dependency to -core/drupal and everything works as advertised.

elevate_image_zoom_js:
  version: 1.x
  js:
    js/elevate_script.js: { weight: -1 }
    /libraries/elevatezoom/jquery.elevatezoom.js: { weight : -2}
  dependencies:
    - core/jquery
    - core/drupal    
keshavv’s picture

Status: Active » Fixed

Released, Thank you!

keshavv’s picture

Status: Fixed » Closed (fixed)