This commit also: - removes [+ New Topic] behaviour from share, this feature has been duplicated in composer actions, months ago - introduces our new experimental spacing standard for css: eg: `s(2)` - introduces a new panel UI for modals
13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
export function share(data) {
|
|
return new Ember.RSVP.Promise((resolve, reject) => {
|
|
if (window.location.protocol === "https:" && window.navigator.share) {
|
|
window.navigator
|
|
.share(data)
|
|
.catch(reject)
|
|
.then(resolve);
|
|
} else {
|
|
reject();
|
|
}
|
|
});
|
|
}
|