Skip to content

Commit 1be5d40

Browse files
Potusektomaski
authored andcommitted
fix(alarm): YouTube audio didn't work (#32)
fix(alarm): YouTube audio didn't work The new version of the Youtube API required different audio support. Closes #27
1 parent 97a97da commit 1be5d40

File tree

2 files changed

+140
-155
lines changed

2 files changed

+140
-155
lines changed

common/RepConvTool.js

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function _RepConvTool() {
5050
RepConv.Debug && console.log(RepConv.Cookie)
5151
}
5252
if(RepConv.settings[RepConv.CookieEmots] == undefined){
53-
RepConv.settings[RepConv.CookieEmots] = RepConvTool.getItem(RepConv.CookieEmots) || 'https://www.pic4ever.com/images/237.gif\nhttps://www.pic4ever.com/images/shake2.gif'
53+
RepConv.settings[RepConv.CookieEmots] = RepConvTool.getItem(RepConv.CookieEmots) || 'https://cdn.grcrt.net/emots2/237.gif\nhttps://cdn.grcrt.net/emots2/shake2.gif'
5454
setOK = false;
5555
RepConv.Debug && console.log(RepConv.CookieEmots)
5656
}
@@ -76,33 +76,18 @@ function _RepConvTool() {
7676
},0)
7777
}
7878
} else {
79-
RepConv.active.power = RepConv.settings[RepConv.CookiePower],//, defData[RepConv.CookiePower]),
80-
RepConv.active.ftabs = RepConv.settings[RepConv.CookieForumTabs],//, defData[RepConv.CookieForumTabs]),
81-
RepConv.active.statsGRCL = RepConv.settings[RepConv.CookieStatsGRCL],//, defData[RepConv.CookieStatsGRCL]),
82-
RepConv.active.unitsCost = RepConv.settings[RepConv.CookieUnitsCost],//,defData[RepConv.CookieUnitsCost]),
83-
// RepConv.active.oceanNumber = RepConv.settings[RepConv.CookieOceanNumber],//, defData[RepConv.CookieOceanNumber]),
84-
RepConv.active.reportFormat = RepConv.settings[RepConv.CookieReportFormat],//, defData[RepConv.CookieReportFormat]);
79+
RepConv.active.power = RepConv.settings[RepConv.CookiePower],
80+
RepConv.active.ftabs = RepConv.settings[RepConv.CookieForumTabs],
81+
RepConv.active.statsGRCL = RepConv.settings[RepConv.CookieStatsGRCL],
82+
RepConv.active.unitsCost = RepConv.settings[RepConv.CookieUnitsCost],
83+
RepConv.active.reportFormat = RepConv.settings[RepConv.CookieReportFormat],
8584
RepConv.audioSupport && (RepConv.active.sounds = RepConv.settings[RepConv.CookieSounds]),
8685
this.useSettings()
8786
}
8887
}
8988
this.useSettings = function() {
90-
// setTimeout(function(){
91-
// RepConvAdds.oceanNumbers();
92-
// }, 100);
93-
// setTimeout(function(){
94-
// try {
95-
// RepConvABH.savedArr = JSON.parse(RepConvTool.getSettings(RepConv.CookieUnitsABH,"{}"))
96-
// } catch (err){
97-
// }
98-
// }, 100);
9989
setTimeout(function(){
10090
var _posEmot = 0;
101-
// RepConvAdds.emots = {}
102-
// $.each(RepConvAdds.emotsDef, function(ind,emot){
103-
// RepConvAdds.emots[_posEmot++] = emot
104-
// })
105-
10691

10792
RepConvAdds.emotsLists.usersaved = {
10893
'img': 'emots2/wizard.gif',
@@ -604,10 +589,10 @@ function _RepConvTool() {
604589
this.loadPower = function() {
605590
if (RepConv.active.power) {
606591
RepConv.Debug && console.log('loadPower');
607-
$.each($('div.gods_area .god_container div.new_ui_power_icon div[name=counter]'), function(ind, elem) {
592+
$.each($('div.gods_spells_menu .god_container div.new_ui_power_icon div[name=counter]'), function(ind, elem) {
608593
$(elem).remove();
609594
});
610-
$.each($('div.gods_area .god_container div.new_ui_power_icon.disabled'), function(ind, elem) {
595+
$.each($('div.gods_spells_menu .god_container div.new_ui_power_icon.disabled'), function(ind, elem) {
611596
power = GameData.powers[$(elem).attr('data-power_id')],
612597
god = MM.checkAndPublishRawModel('PlayerGods', {id : Game.player_id}).getCurrentProductionOverview()[power.god_id],
613598
_godCurr = MM.checkAndPublishRawModel('PlayerGods', {id : Game.player_id})[power.god_id+'_favor_delta_property'].calculateCurrentValue().unprocessedCurrentValue,

0 commit comments

Comments
 (0)