Skip to content

Commit

Permalink
promise stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagsten committed Apr 21, 2019
1 parent 00df053 commit eee87d9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/talkify.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ talkify = talkify || {};
talkify.http = (function ajax() {

var get = function(url) {
var call = new promise.Promise();
var call = new promise.promise.Promise();

var keypart = (url.indexOf('?') !== -1 ? "&key=" : "?key=") + talkify.config.remoteService.apiKey;

Expand Down Expand Up @@ -363,7 +363,7 @@ talkify.playbar = function (parent, correlationId) {
}

function isTalkifyHostedVoice(voice) {
return voice && voice.constructor.name !== "SpeechSynthesisVoice";//voice.isTalkify;
return voice && voice.constructor.name !== "SpeechSynthesisVoice";
}

function featureToggle(voice) {
Expand Down Expand Up @@ -893,7 +893,7 @@ talkify.Html5Player = function () {
};

function getVoice() {
var p = new promise.Promise();
var p = new promise.promise.Promise();

if (me.forcedVoice) {
p.done(me.forcedVoice);
Expand Down Expand Up @@ -1452,7 +1452,7 @@ talkify.TtsPlayer = function () {
}

function getPositions(requestId) {
var p = new promise.Promise();
var p = new promise.promise.Promise();

talkify.http.get(talkify.config.remoteService.speechBaseUrl + "/marks?id=" + requestId)
.then(function (error, positions) {
Expand Down
2 changes: 1 addition & 1 deletion dist/talkify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/talkify-ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
talkify.http = (function ajax() {

var get = function(url) {
var call = new promise.Promise();
var call = new promise.promise.Promise();

var keypart = (url.indexOf('?') !== -1 ? "&key=" : "?key=") + talkify.config.remoteService.apiKey;

Expand Down
2 changes: 1 addition & 1 deletion src/talkify-html5-speechsynthesis-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ talkify.Html5Player = function () {
};

function getVoice() {
var p = new promise.Promise();
var p = new promise.promise.Promise();

if (me.forcedVoice) {
p.done(me.forcedVoice);
Expand Down
2 changes: 1 addition & 1 deletion src/talkify-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ talkify.TtsPlayer = function () {
}

function getPositions(requestId) {
var p = new promise.Promise();
var p = new promise.promise.Promise();

talkify.http.get(talkify.config.remoteService.speechBaseUrl + "/marks?id=" + requestId)
.then(function (error, positions) {
Expand Down

0 comments on commit eee87d9

Please sign in to comment.