mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Propagate updated ajax headers by default
This commit is contained in:
parent
13603dd5f4
commit
b23e8295d3
@ -1013,6 +1013,9 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
||||
* TODO
|
||||
*/
|
||||
setAjaxHeaders: function(ajaxHeaders, propagate){
|
||||
if (propagate === undefined) {
|
||||
propagate = true;
|
||||
}
|
||||
|
||||
// use same headers if provided 'ajaxHeaders' is invalid (useful for propagation)
|
||||
if ($.isPlainObject(ajaxHeaders)) {
|
||||
|
@ -982,6 +982,10 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
* TODO
|
||||
*/
|
||||
setAjaxHeaders: function(ajaxHeaders, propagate){
|
||||
if (propagate === undefined) {
|
||||
propagate = true;
|
||||
}
|
||||
|
||||
if ($.isPlainObject(ajaxHeaders)) {
|
||||
this.ajaxHeaders = ajaxHeaders;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user