Compare commits
	
		
			No commits in common. "f3f12282e37ef804f55557997dd97e752f85f541" and "089ea3d5ab10f951627fe7b5d9735a2d0e125425" have entirely different histories.
		
	
	
		
			f3f12282e3
			...
			089ea3d5ab
		
	
		| 
						 | 
				
			
			@ -18,7 +18,6 @@ async function initialize() {
 | 
			
		|||
  const start = window.performance.now();
 | 
			
		||||
  initializeGlobals();
 | 
			
		||||
  const enabledFeatures = await fromStorage(Data.EnabledFeatures);
 | 
			
		||||
  window.TildesReExtended.debug = enabledFeatures.value.has(Feature.Debug);
 | 
			
		||||
 | 
			
		||||
  // Any features that will use the knownGroups data should be added to this
 | 
			
		||||
  // array so that when groups are changed on Tildes, TRX can still update
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -44,7 +44,7 @@ export const features: FeatureData[] = [
 | 
			
		|||
    component: BackToTopSetting,
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    availableSince: new Date("2023-07-01"),
 | 
			
		||||
    availableSince: new Date("2023-06-31"),
 | 
			
		||||
    index: 0,
 | 
			
		||||
    key: Feature.HideTopics,
 | 
			
		||||
    title: "Hide Topics",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -83,7 +83,7 @@ class App extends Component<Props, State> {
 | 
			
		|||
    // Create the version link for the header.
 | 
			
		||||
    const version = manifest.version;
 | 
			
		||||
    const versionUrl = encodeURI(
 | 
			
		||||
      `https://gitlab.com/tildes-community/tildes-reextended/-/releases/${version}`,
 | 
			
		||||
      `https://gitlab.com/tildes-community/tildes-reextended/-/tags/${version}`,
 | 
			
		||||
    );
 | 
			
		||||
    const versionLink = (
 | 
			
		||||
      <Link class="version" text={`v${version}`} url={versionUrl} />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
import {createValue, type Value} from "@holllo/webextension-storage";
 | 
			
		||||
import {createValue} from "@holllo/webextension-storage";
 | 
			
		||||
import browser from "webextension-polyfill";
 | 
			
		||||
import {Data, Feature} from "./enums.js";
 | 
			
		||||
import {collectHideTopicsData} from "./hide-topics.js";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,6 @@ export const migrations: Array<Migration<string>> = [
 | 
			
		|||
      await version.save();
 | 
			
		||||
 | 
			
		||||
      const enabledFeatures = await fromStorage(Data.EnabledFeatures);
 | 
			
		||||
      enabledFeatures.value.clear();
 | 
			
		||||
      for (const [key, value] of Object.entries(data.features)) {
 | 
			
		||||
        if (value) {
 | 
			
		||||
          const snakeCasedKey = key.replace(/([A-Z])/g, "-$1").toLowerCase();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue