Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated require paths for the new sdk layout #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/main.js
@@ -1,16 +1,16 @@
/* -*- Mode: JavaScript; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */

const addon = require("self");
const unload = require("unload");
const pageWorkers = require("page-worker");
const pageMod = require("page-mod");
const addon = require("sdk/self");
const unload = require("sdk/system/unload");
const pageWorkers = require("sdk/page-worker");
const pageMod = require("sdk/page-mod");
const { Cc, Ci, Cm, Cu, components } = require("chrome");
let tmp = {};
Cu.import("resource://gre/modules/Services.jsm", tmp);
Cu.import("resource://gre/modules/XPCOMUtils.jsm", tmp);
let { Services, XPCOMUtils } = tmp;
var tabs = require("tabs");
var tabs = require("sdk/tabs");

let unloaders = [];

Expand Down Expand Up @@ -193,7 +193,7 @@ let AboutAwards = {

function installPageMods() {
// about:awards pagemod
var pageMod = require("page-mod");
var pageMod = require("sdk/page-mod");
pageMod.PageMod({
include: ["about:awards", "file:///Users/shanec/src/awards/data/awards.html"],
contentScriptWhen: 'start',
Expand Down