diff --git a/index.html b/index.html
index b4cb50e..5d7093a 100644
--- a/index.html
+++ b/index.html
@@ -98,7 +98,7 @@
Grapick
gp.addHandler(1, '#085078', 1);
gp.addHandler(99, '#85D8CE', 1, { keepSelect: 1 });
gp.on('change', function(complete) {
- document.body.style.backgroundImage = gp.getSafeValue();
+ document.body.style.backgroundImage = gp.getValue();
})
gp.emit('change');
diff --git a/src/Grapick.js b/src/Grapick.js
index ecda197..fb3ecf6 100644
--- a/src/Grapick.js
+++ b/src/Grapick.js
@@ -145,8 +145,10 @@ export default class Grapick extends EventEmitter {
/**
- * Get the gradient value with the browser prefix if necessary
+ * Get the gradient value with the browser prefix if necessary.
+ * The usage of this method is deprecated (noticed weird behaviors in modern browsers).
* @return {string}
+ * @deprecated
*/
getSafeValue(type, angle) {
const previewEl = this.previewEl;