1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:42:26 +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)
checkSyntax(uri);
this.unregisterSheet(uri);
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)