mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 17:44:11 +01:00
Add go=r to toggle the scrollbar
This commit is contained in:
@@ -238,6 +238,7 @@ function Styles(name, store, serial)
|
||||
try
|
||||
{
|
||||
this.registerSheet(cssUri(wrapCSS(sheet)), !force);
|
||||
this.registerAgentSheet(cssUri(wrapCSS(sheet)))
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
@@ -299,6 +300,7 @@ function Styles(name, store, serial)
|
||||
if (!sheet.ref.length)
|
||||
{
|
||||
this.unregisterSheet(cssUri(wrapCSS(sheet)));
|
||||
this.unregisterAgentSheet(cssUri(wrapCSS(sheet)));
|
||||
if (sheets.indexOf(sheet) > -1)
|
||||
sheets.splice(sheets.indexOf(sheet), 1);
|
||||
}
|
||||
@@ -331,6 +333,21 @@ function Styles(name, store, serial)
|
||||
sss.unregisterSheet(uri, sss.USER_SHEET);
|
||||
}
|
||||
|
||||
// FIXME
|
||||
this.registerAgentSheet = function (uri)
|
||||
{
|
||||
this.unregisterAgentSheet(uri);
|
||||
uri = ios.newURI(uri, null, null);
|
||||
sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
|
||||
}
|
||||
|
||||
this.unregisterAgentSheet = function (uri)
|
||||
{
|
||||
uri = ios.newURI(uri, null, null);
|
||||
if (sss.sheetRegistered(uri, sss.AGENT_SHEET))
|
||||
sss.unregisterSheet(uri, sss.AGENT_SHEET);
|
||||
}
|
||||
|
||||
function wrapCSS(sheet)
|
||||
{
|
||||
let filter = sheet.sites;
|
||||
|
||||
Reference in New Issue
Block a user