-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filename as window title #2500
Filename as window title #2500
Conversation
Display the filename as the new window's title in 'dataurlnewwindow' case.
src/jspdf.js
Outdated
@@ -2423,7 +2423,8 @@ var jsPDF = (function (global) { | |||
* | |||
* If `type` argument is undefined, output is raw body of resulting PDF returned as a string. | |||
* | |||
* @param {string} type A string identifying one of the possible output types. Possible values are 'arraybuffer', 'blob', 'bloburi'/'bloburl', 'datauristring'/'dataurlstring', 'datauri'/'dataurl', 'dataurlnewwindow', 'pdfobjectnewwindow', 'pdfjsnewwindow'. | |||
* @param {string} type A string identifying one of the possible output types. Possible values are 'arraybuffer', 'blob', 'bloburi'/'bloburl', 'datauristring'/'dataurlstring', 'datauri'/'dataurl', 'dataurl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the comment
src/jspdf.js
Outdated
@@ -2939,7 +2939,7 @@ var jsPDF = (function(global) { | |||
* | |||
* If `type` argument is undefined, output is raw body of resulting PDF returned as a string. | |||
* | |||
* @param {string} type A string identifying one of the possible output types. Possible values are 'arraybuffer', 'blob', 'bloburi'/'bloburl', 'datauristring'/'dataurlstring', 'datauri'/'dataurl', 'dataurl | |||
* @param {string} type A string identifying one of the possible output types. Possible values are 'arraybuffer', 'blob', 'bloburi'/'bloburl', 'datauristring'/'dataurlstring', 'datauri'/'dataurl', 'dataurlnewwindow', 'pdfobjectnewwindow', 'pdfjsnewwindow'. | |||
', 'pdfobjectnewwindow', 'pdfjsnewwindow'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for nitpicking, but now 'pdfobjectnewwindow', 'pdfjsnewwindow'
appear twice ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks for catching that!
Display the filename as the new window's title in 'dataurlnewwindow' case.
Fixes #2499