scrivito_editors 0.70.1 → 0.70.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db5671af6364a9fe3167c002c12c137661403bdf
4
- data.tar.gz: 1769f603ef9a56516f6720710da88e594e009f57
3
+ metadata.gz: 368d73a788a8236caba480f936e5a8e3bf732bc4
4
+ data.tar.gz: 56dd5778059e509c4c42c9d6ffc27a46829e9762
5
5
  SHA512:
6
- metadata.gz: 922958db6b79dfab14a2eeb4ccbb1b6f448e2cd1352077982eff67563cb0fef7d275f7ed0aa48c6da1c731655d60e492d69543980c3b313faafa500ecc7fc52f
7
- data.tar.gz: fcd5283e5ac832bf3c8711d78acd4d90bb57c41df1ff4d0b14ce5ab2e937aa6aea0dfc815e9c735893942aea8cd6e53037fb01e9d1d733afd4000b259800ee0c
6
+ metadata.gz: 6ec896e7020ebb040b9bd93859413d365f336bc1788dcc1817b50a268d77b9bf5d5b552d03b4d30259303e7d02af0a65e7d9e7f80a6e4c3c46e935327d987ca6
7
+ data.tar.gz: a15151bb67477177691a314349347f3b28d001862c41e0dcae0dad611b31477e4e6d9dc2a012e2e171abe40c7e60e59f65f41b66a10cfd142b94f33dbec609af
@@ -55,6 +55,32 @@ setup_image_kit_container = (element, dialog) ->
55
55
  image.crossOrigin = "Anonymous"
56
56
  image.src = url
57
57
 
58
+ #S3 compatible (as of 2015-10) workaround to prevent crossOrigin warnings in chrome and safari
59
+ fallbackUrl = url
60
+ if url.indexOf("?") < 0
61
+ fallbackUrl = url + "?=" + new Date().getTime()
62
+ else
63
+ fallbackUrl = url + "&=" + new Date().getTime()
64
+
65
+ image.onerror = ->
66
+ if image.src is fallbackUrl
67
+ $("""
68
+ <div style='padding:20px'>
69
+ <h1>We're sorry,</h1>
70
+ <p>Scrivito can't edit this image in your browser. What now?</p>
71
+ <ul>
72
+ <li>Check for browser updates</li>
73
+ <li>Try using a different browser</li>
74
+ <li>Contact us at
75
+ <a href="https://scrivito.com/support" target="_blank">https://scrivito.com/support</a>
76
+ </li>
77
+ </ul>
78
+ </div>
79
+ """).appendTo(container)
80
+ else
81
+ console.info("Scrivito detected a probable CORS browser cache mismatch, trying uncached load")
82
+ image.src = fallbackUrl
83
+
58
84
  image.onload = ->
59
85
  kit = setup_image_kit(image, container)
60
86
  kit.ui.selectOperations(except: "stickers")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_editors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.70.1
4
+ version: 0.70.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-rails
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.70.1
75
+ version: 0.70.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.70.1
82
+ version: 0.70.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: scrivito_sdk
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.70.1
89
+ version: 0.70.2
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.70.1
96
+ version: 0.70.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement