Show a different warning for PDF’s with forms.
This commit is contained in:
parent
4d01ff4079
commit
5d080a03bb
3 changed files with 9 additions and 3 deletions
|
@ -377,11 +377,16 @@ ChromeActions.prototype = {
|
|||
break;
|
||||
}
|
||||
},
|
||||
fallback: function(url, sendResponse) {
|
||||
fallback: function(featureId, url, sendResponse) {
|
||||
var self = this;
|
||||
var domWindow = this.domWindow;
|
||||
var strings = getLocalizedStrings('chrome.properties');
|
||||
var message = getLocalizedString(strings, 'unsupported_feature');
|
||||
var message;
|
||||
if (featureId === 'forms') {
|
||||
message = getLocalizedString(strings, 'unsupported_feature_forms');
|
||||
} else {
|
||||
message = getLocalizedString(strings, 'unsupported_feature');
|
||||
}
|
||||
|
||||
PdfJsTelemetry.onFallback();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue