Skip to content

Commit 42949e6

Browse files
Closure Teamcopybara-github
authored andcommitted
Declare Navigator.prototype.canShare()
See https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare PiperOrigin-RevId: 324427749
1 parent c0d4d73 commit 42949e6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

externs/browser/html5.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5289,6 +5289,13 @@ Navigator.prototype.deviceMemory;
52895289
*/
52905290
Navigator.prototype.storage;
52915291

5292+
/**
5293+
* @param {!ShareData=} data
5294+
* @return {boolean}
5295+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare
5296+
*/
5297+
Navigator.prototype.canShare = function(data) {};
5298+
52925299
/**
52935300
* @param {!ShareData=} data
52945301
* @return {!Promise<undefined>}

src/com/google/javascript/jscomp/resources/resources.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)