1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 08:52:27 +01:00

Re-register a stylesheet if it already exists on styles.registerSheet

This commit is contained in:
Kris Maglione
2008-10-10 03:45:30 +00:00
parent f771b5e25e
commit 5d68871ca7

View File

@@ -139,9 +139,9 @@ liberator.Buffer = function () //{{{
{ {
if (doCheckSyntax) if (doCheckSyntax)
checkSyntax(uri); checkSyntax(uri);
this.unregisterSheet(uri);
uri = ios.newURI(uri, null, null); uri = ios.newURI(uri, null, null);
if (!sss.sheetRegistered(uri, sss.USER_SHEET)) sss.loadAndRegisterSheet(uri, sss.USER_SHEET);
sss.loadAndRegisterSheet(uri, sss.USER_SHEET);
} }
this.unregisterSheet = function (uri) this.unregisterSheet = function (uri)