A lot of things
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export function RomPatcher( initialPatches = {} ) {
|
||||
export const RomPatcher = function( initialPatches = {} ) {
|
||||
|
||||
let patchesArray = [];
|
||||
if (initialPatches) {
|
||||
@@ -39,9 +39,9 @@ export function RomPatcher( initialPatches = {} ) {
|
||||
patchesData: patchesArray,
|
||||
hasEmbedded: patchesArray.length > 0,
|
||||
|
||||
init() {
|
||||
init( config = {language: 'en', requireValidation: false} ) {
|
||||
|
||||
const CONFIG = {language: 'en', requireValidation: false};
|
||||
const CONFIG = config;
|
||||
|
||||
if (!RomPatcherWeb.isInitialized()){
|
||||
if (this.hasEmbedded) {
|
||||
@@ -112,3 +112,7 @@ export function RomPatcher( initialPatches = {} ) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.RomPatcher = RomPatcher;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user