mirror of
https://github.com/marcrobledo/savegame-editors.git
synced 2025-04-24 16:35:10 +00:00
fixed IE11 compatibility
This commit is contained in:
parent
a6d5f23a59
commit
3ff64a34f8
@ -12,7 +12,7 @@ limitations under the License.
|
||||
mod by marcrobledo, original from: https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/basic/service-worker.js
|
||||
*/
|
||||
|
||||
const PRECACHE_ID='v20180526';
|
||||
const PRECACHE_ID='v20190128';
|
||||
const PRECACHE_FILES=[
|
||||
'index.html','./',
|
||||
'zelda-botw.css',
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
The legend of Zelda: Breath of the wild Savegame Editor (Icons) v20171113
|
||||
The legend of Zelda: Breath of the wild Savegame Editor (Icons) v20190128
|
||||
|
||||
by Marc Robledo 2017
|
||||
by Marc Robledo 2017-2019
|
||||
|
||||
|
||||
icons extracted from https://www.spriters-resource.com/wii_u/thelegendofzeldabreathofthewild/
|
||||
@ -95,7 +95,7 @@ var BOTW_Icons=(function(){
|
||||
}
|
||||
},
|
||||
|
||||
_getItemIcon(itemNameId, clothesColor){
|
||||
_getItemIcon:function(itemNameId, clothesColor){
|
||||
var fileName,id,match;
|
||||
if(match=itemNameId.match(/^Armor_([0-9]{3})_(Head|Upper|Lower)(_Dye[0-9]{2})?/)){
|
||||
fileName='Armor_'+match[2];
|
||||
|
@ -1,13 +1,13 @@
|
||||
/*
|
||||
The legend of Zelda: Breath of the wild v20180520
|
||||
by Marc Robledo 2017-2018
|
||||
The legend of Zelda: Breath of the wild v20190128
|
||||
by Marc Robledo 2017-2019
|
||||
*/
|
||||
var currentEditingItem=0;
|
||||
|
||||
SavegameEditor={
|
||||
Name:'The legend of Zelda: Breath of the wild',
|
||||
Filename:'game_data.sav',
|
||||
Version:20180520,
|
||||
Version:20190128,
|
||||
|
||||
/* Constants */
|
||||
Constants:{
|
||||
@ -111,7 +111,7 @@ SavegameEditor={
|
||||
this._writeValue(offset+4,val);
|
||||
},
|
||||
|
||||
_getOffsets(v){
|
||||
_getOffsets:function(v){
|
||||
this.Offsets={};
|
||||
if(v<this.OffsetsAll.RUPEES.length){
|
||||
for(prop in this.OffsetsAll){
|
||||
@ -969,4 +969,15 @@ window.addEventListener('load',function(){
|
||||
navigator.serviceWorker.register('_cache_service_worker.js');
|
||||
|
||||
window.addEventListener('scroll',onScroll,false);
|
||||
}, false);
|
||||
}, false);
|
||||
|
||||
if(typeof String.endsWith==='undefined'){
|
||||
String.prototype.endsWith=function(search){
|
||||
return (new RegExp(search+'$')).test(this)
|
||||
};
|
||||
}
|
||||
if(typeof String.startsWith==='undefined'){
|
||||
String.prototype.startsWith=function(search){
|
||||
return (new RegExp('^'+search)).test(this)
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user