Core frame updates, and throw a system error if the frame and page details dont match
This commit is contained in:
@@ -166,6 +166,10 @@ PageFrame.prototype.load = function(filename) {
|
||||
this[SAVED_FRAME_ATTRS[property]] = load[SAVED_FRAME_ATTRS[property]];
|
||||
}
|
||||
|
||||
// If the page doesnt match the filename, throw an error
|
||||
if (this.page !== filename)
|
||||
throw 'Frame doesnt match filename';
|
||||
|
||||
} catch (error) {
|
||||
log(LOG_ERROR,'Frame error: '+error);
|
||||
|
||||
|
Reference in New Issue
Block a user